From 8495cf8a45e90b463e0e70b10956957f90ff4365 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 14 Nov 2021 21:21:37 +1100 Subject: [PATCH] don't delete non-form data when editing authors fixes #1584 This is a temporary fix. As Mouse has suggested, ultimately it would be good to re-import data from one or more of the linked data sources if there is anything missing. --- bookwyrm/forms.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index 298f73da..1ec51df9 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -201,12 +201,17 @@ 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", + "librarything_key", + "goodreads_key", ]