beautified code

This commit is contained in:
gw3000 2023-06-22 17:41:37 +02:00
parent 27802b317d
commit d8ba98366f
5 changed files with 30 additions and 28 deletions

View file

@ -10,12 +10,18 @@ class DateInput(forms.DateInput):
class BirdAddForm(forms.ModelForm):
class Meta:
widgets = {
"date_found": DateInput()}
widgets = {"date_found": DateInput()}
model = FallenBird
fields = ["bird", "date_found", "place", ]
labels = {"bird": _("Vogel"), "date_found": _(
"Datum des Fundes"), "place": _("Fundort")}
fields = [
"bird",
"date_found",
"place",
]
labels = {
"bird": _("Vogel"),
"date_found": _("Datum des Fundes"),
"place": _("Fundort"),
}
class BirdEditForm(forms.ModelForm):