X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7f4607810640a9e562f06df4f1b8ec6fee8b0eea..8c43021c5d0731cf35203cb32bbc63c89271cbb5:/apps/catalogue/helpers.py?ds=inline diff --git a/apps/catalogue/helpers.py b/apps/catalogue/helpers.py index a97a0400..7b1f44a4 100644 --- a/apps/catalogue/helpers.py +++ b/apps/catalogue/helpers.py @@ -70,6 +70,11 @@ class GalleryMerger(object): m = not always and re.match(r"^([0-9])-", name) return "%1d-%s" % (prefix, m and name[2:] or name) + @property + def was_merged(self): + "Check if we have gallery size recorded" + return self.dest_size is not None + def merge(self): if not self.dest: return self.src