old_contents: import django_filters
  
  from nodeconductor.template import models
  
  
  class TemplateGroupFilter(django_filters.FilterSet):
      tag = django_filters.ModelMultipleChoiceFilter(
          name='tags__name',
          to_field_name='name',
          lookup_type='in',
          queryset=models.TemplateGroup.tags.all(),
          conjoined=True,
      )
  
      class Meta(object):
          model = models.TemplateGroup
          fields = ['tag']
  
new_contents: import django_filters
  import taggit
  
  from nodeconductor.template import models
  
  
  class TemplateGroupFilter(django_filters.FilterSet):
      tag = django_filters.ModelMultipleChoiceFilter(
          name='tags__name',
          to_field_name='name',
          lookup_type='in',
          queryset=taggit.models.Tag.objects.all(),
          conjoined=True,
      )
  
      class Meta(object):
          model = models.TemplateGroup
          fields = ['tag']
  
subject: Fix tags choices