more fields better language
This commit is contained in:
parent
52dd41a2ac
commit
7f7dde274c
1 changed files with 12 additions and 0 deletions
|
@ -16,14 +16,19 @@ class BirdAddForm(forms.ModelForm):
|
||||||
}
|
}
|
||||||
model = FallenBird
|
model = FallenBird
|
||||||
fields = [
|
fields = [
|
||||||
|
"bird_identifier",
|
||||||
"bird",
|
"bird",
|
||||||
"date_found",
|
"date_found",
|
||||||
"place",
|
"place",
|
||||||
|
"status",
|
||||||
|
|
||||||
]
|
]
|
||||||
labels = {
|
labels = {
|
||||||
|
"bird_identifier": _("Kennung"),
|
||||||
"bird": _("Vogel"),
|
"bird": _("Vogel"),
|
||||||
"date_found": _("Datum des Fundes"),
|
"date_found": _("Datum des Fundes"),
|
||||||
"place": _("Fundort"),
|
"place": _("Fundort"),
|
||||||
|
"status": _("Status"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,14 +37,21 @@ class BirdEditForm(forms.ModelForm):
|
||||||
widgets = {"date_found": DateInput(format="%Y-%m-%d")}
|
widgets = {"date_found": DateInput(format="%Y-%m-%d")}
|
||||||
model = FallenBird
|
model = FallenBird
|
||||||
fields = [
|
fields = [
|
||||||
|
"bird_identifier",
|
||||||
"bird",
|
"bird",
|
||||||
"date_found",
|
"date_found",
|
||||||
"place",
|
"place",
|
||||||
|
"status",
|
||||||
|
"aviary",
|
||||||
|
"cost_sum",
|
||||||
"rescuer",
|
"rescuer",
|
||||||
]
|
]
|
||||||
labels = {
|
labels = {
|
||||||
"bird": _("Vogel"),
|
"bird": _("Vogel"),
|
||||||
"date_found": _("Datum des Fundes"),
|
"date_found": _("Datum des Fundes"),
|
||||||
"place": _("Fundort"),
|
"place": _("Fundort"),
|
||||||
|
"status": _("Status"),
|
||||||
|
"aviary": _("Voliere"),
|
||||||
|
"cost_sum": _("Kosten der Behandlung [Euro]"),
|
||||||
"rescuer": _("Retter"),
|
"rescuer": _("Retter"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue