Fix issue with copies

This commit is contained in:
Kuroshini 2019-10-15 21:40:55 +03:00
parent a0e24a26a0
commit e0bce99ca9

View File

@ -47,7 +47,7 @@ class TagCategoryQuerySet(models.QuerySet):
def with_tags(self, switcher=True):
"""Filter by existing tags."""
return self.filter(tags__isnull=not switcher)
return self.exclude(tags__isnull=switcher)
class TagCategory(TranslatedFieldsMixin, models.Model):