forked from mirrors/bookwyrm
Merge pull request #1605 from hughrun/author-form
Don't delete non-form data when editing authors
This commit is contained in:
commit
403c0dc3a3
1 changed files with 12 additions and 6 deletions
|
@ -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",
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue