X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/807700701f88085d514a75474b17f8e85bfd1ebd..1610eb2c8c981232e53cbc58039fd3c00736a652:/src/catalogue/models/tag.py diff --git a/src/catalogue/models/tag.py b/src/catalogue/models/tag.py index 5442213c6..acf02529e 100644 --- a/src/catalogue/models/tag.py +++ b/src/catalogue/models/tag.py @@ -101,10 +101,10 @@ class Tag(models.Model): unique_together = (("slug", "category"),) app_label = 'catalogue' - def save(self, *args, **kwargs): + def save(self, *args, quick=False, **kwargs): existing = self.pk and self.category != 'set' ret = super(Tag, self).save(*args, **kwargs) - if existing: + if existing and not quick: self.after_change.send(sender=type(self), instance=self) return ret