Fix shelving date changing when changing editions (#3193)

Merged from  from jakejack13/switch-edition
Fixes: #3139.
This commit is contained in:
Adeodato Simó 2024-03-03 18:48:04 -03:00 committed by GitHub
commit 9e7b040b73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,6 +93,7 @@ def switch_edition(request):
user=shelfbook.user,
shelf=shelfbook.shelf,
book=new_edition,
shelved_date=shelfbook.shelved_date,
)
shelfbook.delete()