Handle Author form errors
This commit is contained in:
@ -236,7 +236,39 @@ class AuthorForm(CustomForm):
|
||||
"librarything_key",
|
||||
"goodreads_key",
|
||||
]
|
||||
|
||||
widgets = {
|
||||
"name": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_name"}
|
||||
),
|
||||
"aliases": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_aliases"}
|
||||
),
|
||||
"bio": forms.Textarea(
|
||||
attrs={"aria-describedby": "desc_bio"}
|
||||
),
|
||||
"wikipedia_link": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_wikipedia_link"}
|
||||
),
|
||||
"born": forms.SelectDateWidget(
|
||||
attrs={"aria-describedby": "desc_born"}
|
||||
),
|
||||
"died": forms.SelectDateWidget(
|
||||
attrs={"aria-describedby": "desc_died"}
|
||||
),
|
||||
"oepnlibrary_key": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_oepnlibrary_key"}
|
||||
),
|
||||
"inventaire_id": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_inventaire_id"}
|
||||
),
|
||||
"librarything_key": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_librarything_key"}
|
||||
),
|
||||
"goodreads_key": forms.TextInput(
|
||||
attrs={"aria-describedby": "desc_goodreads_key"}
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
class ImportForm(forms.Form):
|
||||
csv_file = forms.FileField()
|
||||
|
Reference in New Issue
Block a user