scratch-site/scratch_show/forms.py

10 lines
259 B
Python
Raw Normal View History

2022-05-13 03:04:13 +02:00
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