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

17 lines
419 B
Python

from django.forms import ModelForm, DateInput
from rescue.models import Rescue
class DateInput(DateInput):
input_type = "date"
class SubmitRescue(ModelForm):
class Meta:
model = Rescue
fields = ["name", "date", "location_long", "location_lat", "resume", "saved", "rescuers", "boats", "description",
"sources"]
widgets = {
"date": DateInput()
}