Merge pull request #1605 from hughrun/author-form

Don't delete non-form data when editing authors
This commit is contained in:
Mouse Reeve 2021-11-14 06:50:55 -08:00 committed by GitHub
commit 403c0dc3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,12 +201,18 @@ class EditionForm(CustomForm):
class AuthorForm(CustomForm):
class Meta:
model = models.Author
exclude = [
"remote_id",
"origin_id",
"created_date",
"updated_date",
"search_vector",
fields = [
"last_edited_by",
"name",
"aliases",
"bio",
"wikipedia_link",
"born",
"died",
"openlibrary_key",
"inventaire_id",
"librarything_key",
"goodreads_key",
]