Fixes #4405: reset metadata editor when switching views.
[redakcja.git] / src / depot / models.py
index b68b536..23b6d9f 100644 (file)
@@ -154,6 +154,7 @@ class LegimiBookPublish(models.Model):
                 self.legimichunkpublish_set.order_by('change__chunk__number')
             ]
             legimi.send_book(self.book, changes=changes)
                 self.legimichunkpublish_set.order_by('change__chunk__number')
             ]
             legimi.send_book(self.book, changes=changes)
+            legimi.edit_sale(self.book)
         except Exception:
             self.status = 110
             self.error = traceback.format_exc()
         except Exception:
             self.status = 110
             self.error = traceback.format_exc()