<s> import django_filters <EOL> from nodeconductor . core import filters as core_filters <EOL> from nodeconductor . structure import filters as structure_filters <EOL> from nodeconductor . openstack import models <EOL> class OpenStackServiceProjectLinkFilter ( structure_filters . BaseServiceProjectLinkFilter ) : <EOL> service = core_filters . URLFilter ( view_name = '<STR_LIT>' , name = '<STR_LIT>' ) <EOL> class InstanceFilter ( structure_filters . BaseResourceFilter ) : <EOL> class Meta ( structure_filters . BaseResourceFilter . Meta ) : <EOL> model = models . Instance <EOL> order_by = structure_filters . BaseResourceFilter . Meta . order_by + [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> order_by_mapping = dict ( <EOL> project__customer__name = '<STR_LIT>' , <EOL> project__name = '<STR_LIT>' , <EOL> project__project_groups__name = '<STR_LIT>' , <EOL> ** structure_filters . BaseResourceFilter . Meta . order_by_mapping <EOL> ) <EOL> class SecurityGroupFilter ( django_filters . FilterSet ) : <EOL> name = django_filters . CharFilter ( <EOL> name = '<STR_LIT:name>' , <EOL> lookup_type = '<STR_LIT>' , <EOL> ) <EOL> description = django_filters . CharFilter ( <EOL> name = '<STR_LIT:description>' , <EOL> lookup_type = '<STR_LIT>' , <EOL> ) <EOL> service = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' , <EOL> ) <EOL> project = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' , <EOL> ) <EOL> settings_uuid = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' <EOL> ) <EOL> service_project_link = core_filters . URLFilter ( <EOL> view_name = '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> lookup_field = '<STR_LIT>' , <EOL> ) <EOL> state = core_filters . StateFilter ( ) <EOL> class Meta ( object ) : <EOL> model = models . SecurityGroup <EOL> fields = [ <EOL> '<STR_LIT:name>' , <EOL> '<STR_LIT:description>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:state>' , <EOL> ] <EOL> class FloatingIPFilter ( django_filters . FilterSet ) : <EOL> project = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' , <EOL> ) <EOL> service = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' , <EOL> ) <EOL> class Meta ( object ) : <EOL> model = models . FloatingIP <EOL> fields = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:status>' , <EOL> ] <EOL> class FlavorFilter ( structure_filters . ServicePropertySettingsFilter ) : <EOL> class Meta ( structure_filters . ServicePropertySettingsFilter . Meta ) : <EOL> model = models . Flavor <EOL> fields = dict ( { <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> '<STR_LIT>' : [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> } , ** { field : [ '<STR_LIT>' ] for field in structure_filters . ServicePropertySettingsFilter . Meta . fields } ) <EOL> order_by = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> class BackupScheduleFilter ( django_filters . FilterSet ) : <EOL> description = django_filters . CharFilter ( <EOL> lookup_type = '<STR_LIT>' , <EOL> ) <EOL> class Meta ( object ) : <EOL> model = models . BackupSchedule <EOL> fields = ( <EOL> '<STR_LIT:description>' , <EOL> ) <EOL> class BackupFilter ( django_filters . FilterSet ) : <EOL> description = django_filters . CharFilter ( <EOL> lookup_type = '<STR_LIT>' , <EOL> ) <EOL> instance = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' , <EOL> ) <EOL> project = django_filters . CharFilter ( <EOL> name = '<STR_LIT>' , <EOL> ) <EOL> class Meta ( object ) : <EOL> model = models . Backup <EOL> fields = ( <EOL> '<STR_LIT:description>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) </s>
