help description for birds
This commit is contained in:
parent
52f80672eb
commit
4f9b6f9fb5
5 changed files with 38 additions and 22 deletions
|
@ -12,9 +12,17 @@ class DateInput(forms.DateInput):
|
|||
|
||||
class BirdAddForm(forms.ModelForm):
|
||||
class Meta:
|
||||
widgets = {"date_found": DateInput(format="%Y-%m-%d", attrs={"value": date.today})}
|
||||
widgets = {
|
||||
"date_found": DateInput(format="%Y-%m-%d", attrs={"value": date.today})
|
||||
}
|
||||
model = FallenBird
|
||||
fields = ["bird_identifier","bird","date_found","place","status", ]
|
||||
fields = [
|
||||
"bird_identifier",
|
||||
"bird",
|
||||
"date_found",
|
||||
"place",
|
||||
"status",
|
||||
]
|
||||
labels = {
|
||||
"bird_identifier": _("Kennung"),
|
||||
"bird": _("Vogel"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue