beautified code
This commit is contained in:
parent
27802b317d
commit
d8ba98366f
5 changed files with 30 additions and 28 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue