Fix issue with copies
This commit is contained in:
parent
a0e24a26a0
commit
e0bce99ca9
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user