10 lines
259 B
Python
10 lines
259 B
Python
|
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
|