diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-08-28 18:27:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:20 +0100 |
commit | eb99d500e8e1d5b8be8f02ffdf8c4b505159add5 (patch) | |
tree | 5542f0dc3de02b8d9596df321eed4a1bca1254b7 /ishtar_common | |
parent | 131afa027985065ecf4c97600440500884a9ef26 (diff) | |
download | Ishtar-eb99d500e8e1d5b8be8f02ffdf8c4b505159add5.tar.bz2 Ishtar-eb99d500e8e1d5b8be8f02ffdf8c4b505159add5.zip |
Operation edit: clean potential parcel duplication
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 1 | ||||
-rw-r--r-- | ishtar_common/wizards.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 24d88edde..08ae93fa6 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -5709,7 +5709,6 @@ class Document(BaseHistorizedItem, QRCodeItem, OwnPerms, ImageModel, yield item._get_base_image_path() def _get_base_image_path(self): - print(5637) for path in self._get_base_image_paths(): if path: return path diff --git a/ishtar_common/wizards.py b/ishtar_common/wizards.py index db2cb7829..63f7ee30a 100644 --- a/ishtar_common/wizards.py +++ b/ishtar_common/wizards.py @@ -969,6 +969,7 @@ class Wizard(IshtarWizard): self.request.session[self.get_object_name(obj)] = str(obj.pk) dct = {'item': obj} self.current_object = obj + self.post_save() if self.redirect_url: url = reverse(self.redirect_url) @@ -985,6 +986,9 @@ class Wizard(IshtarWizard): res = render(self.request, self.wizard_done_template, dct) return return_object and (obj, res) or res + def post_save(self): + return + def get_deleted(self, keys): """ Get the deleted and non-deleted items in formsets |