old_contents: import django_filters
  
  from nodeconductor.core.filters import UUIDFilter
  
  from . import models
  
  
  class PackageTemplateFilter(django_filters.FilterSet):
      name = django_filters.CharFilter(lookup_type='icontains')
      settings_uuid = UUIDFilter(name='service_settings__uuid')
  
      class Meta(object):
          model = models.PackageTemplate
          fields = ('name', 'settings_uuid',)
  
  
  class OpenStackPackageFilter(django_filters.FilterSet):
      name = django_filters.CharFilter(lookup_type='icontains')
      settings_uuid = UUIDFilter(name='service_settings__uuid')
  
      class Meta(object):
          model = models.OpenStackPackage
          fields = ('name', 'settings_uuid',)
  
new_contents: import django_filters
  
  from nodeconductor.core.filters import UUIDFilter
  
  from . import models
  
  
  class PackageTemplateFilter(django_filters.FilterSet):
      name = django_filters.CharFilter(lookup_type='icontains')
      settings_uuid = UUIDFilter(name='service_settings__uuid')
  
      class Meta(object):
          model = models.PackageTemplate
          fields = ('name', 'settings_uuid',)
  
  
  class OpenStackPackageFilter(django_filters.FilterSet):
      name = django_filters.CharFilter(lookup_type='icontains')
      customer = UUIDFilter(name='tenant__service_project_link__project__customer')
      project = UUIDFilter(name='tenant__service_project_link__project')
  
      class Meta(object):
          model = models.OpenStackPackage
          fields = ('name', 'customer', 'project')
  
subject: Enable filtering OpenStack package by customer and project (WAL-49)