nuitdelinfo_2021/boat/forms.py
2021-12-03 04:52:09 +01:00

13 lines
248 B
Python

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"]