from django import forms from . import models class ScratchProjectAddForm(forms.ModelForm): url = forms.URLField(label='Lien Scratch du projet (URL)') class Meta: fields = ('name', 'author_name', 'url') model = models.ScratchProject