nuitdelinfo_2021/boat/forms.py

14 lines
248 B
Python
Raw Normal View History

2021-12-03 04:52:09 +01:00
from django.forms import ModelForm, DateInput
from boat.models import Boat
class DateInput(DateInput):
input_type = "date"
class SubmitBoat(ModelForm):
class Meta:
model = Boat
fields = ["name", "model", "description"]