from catalogue.models.tag import prefetched_relations
from catalogue.utils import split_tags
from picture import tasks
from catalogue.models.tag import prefetched_relations
from catalogue.utils import split_tags
from picture import tasks
def related_themes(self):
return catalogue.models.Tag.objects.usage_for_queryset(
self.areas.all(), counts=True).filter(category__in=('theme', 'thing'))
def flush_includes(self, languages=True):
def related_themes(self):
return catalogue.models.Tag.objects.usage_for_queryset(
self.areas.all(), counts=True).filter(category__in=('theme', 'thing'))
def flush_includes(self, languages=True):