diff --git a/tdrs-backend/tdpservice/search_indexes/admin/filters.py b/tdrs-backend/tdpservice/search_indexes/admin/filters.py index f5f6748ec..61bfc525c 100644 --- a/tdrs-backend/tdpservice/search_indexes/admin/filters.py +++ b/tdrs-backend/tdpservice/search_indexes/admin/filters.py @@ -9,7 +9,6 @@ class MultipleChoiceListFilter(SimpleListFilter): """Filter class allowing multiple filter options.""" template = 'multiselectlistfilter.html' - def lookups(self, request, model_admin): """Must be overridden to return a list of tuples (value, verbose value).""" @@ -101,11 +100,9 @@ class STTFilter(MultipleChoiceListFilter): title = _('STT Code') parameter_name = 'stt_code' - def lookups(self, request, model_admin): """Available options in dropdown.""" - listing_record_type = [i for i in str(request.path).lower().split('/') if i not in ['/', '']][-1] options = [] if 'tribal' in listing_record_type: diff --git a/tdrs-backend/tdpservice/search_indexes/migrations/0028_auto_20240515_1649.py b/tdrs-backend/tdpservice/search_indexes/migrations/0029_tanf_tribal_ssp_alter_verbose_names.py similarity index 97% rename from tdrs-backend/tdpservice/search_indexes/migrations/0028_auto_20240515_1649.py rename to tdrs-backend/tdpservice/search_indexes/migrations/0029_tanf_tribal_ssp_alter_verbose_names.py index a9b927738..768c91d1c 100644 --- a/tdrs-backend/tdpservice/search_indexes/migrations/0028_auto_20240515_1649.py +++ b/tdrs-backend/tdpservice/search_indexes/migrations/0029_tanf_tribal_ssp_alter_verbose_names.py @@ -6,7 +6,7 @@ class Migration(migrations.Migration): dependencies = [ - ('search_indexes', '0027_tribal_ssp_tanf_dob_to_string'), + ('search_indexes', '0028_education_level_to_string'), ] operations = [ diff --git a/tdrs-backend/tdpservice/search_indexes/models/ssp.py b/tdrs-backend/tdpservice/search_indexes/models/ssp.py index 2068ff10b..78c035db2 100644 --- a/tdrs-backend/tdpservice/search_indexes/models/ssp.py +++ b/tdrs-backend/tdpservice/search_indexes/models/ssp.py @@ -13,6 +13,8 @@ class SSP_M1(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M1' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -82,6 +84,8 @@ class SSP_M2(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M2' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -172,6 +176,8 @@ class SSP_M3(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M3' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -216,6 +222,8 @@ class SSP_M4(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M4' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -253,6 +261,8 @@ class SSP_M5(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M5' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -302,6 +312,8 @@ class SSP_M6(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M6' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -337,6 +349,8 @@ class SSP_M7(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'SSP M7' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) diff --git a/tdrs-backend/tdpservice/search_indexes/models/tanf.py b/tdrs-backend/tdpservice/search_indexes/models/tanf.py index 647f13087..c57ab89ed 100644 --- a/tdrs-backend/tdpservice/search_indexes/models/tanf.py +++ b/tdrs-backend/tdpservice/search_indexes/models/tanf.py @@ -13,6 +13,8 @@ class TANF_T1(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T1' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -85,6 +87,8 @@ class TANF_T2(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T2' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -177,6 +181,8 @@ class TANF_T3(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T3' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -221,6 +227,8 @@ class TANF_T4(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T4' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -256,6 +264,8 @@ class TANF_T5(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T5' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -308,6 +318,8 @@ class TANF_T6(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T6' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -348,6 +360,8 @@ class TANF_T7(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'TANF T7' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) diff --git a/tdrs-backend/tdpservice/search_indexes/models/tribal.py b/tdrs-backend/tdpservice/search_indexes/models/tribal.py index ed8240c10..d42818336 100644 --- a/tdrs-backend/tdpservice/search_indexes/models/tribal.py +++ b/tdrs-backend/tdpservice/search_indexes/models/tribal.py @@ -15,6 +15,8 @@ class Tribal_TANF_T1(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T1' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -87,6 +89,8 @@ class Tribal_TANF_T2(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T2' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -162,6 +166,8 @@ class Tribal_TANF_T3(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T3' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -205,6 +211,8 @@ class Tribal_TANF_T4(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T4' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -239,6 +247,8 @@ class Tribal_TANF_T5(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T5' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -290,6 +300,8 @@ class Tribal_TANF_T6(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T6' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) @@ -329,6 +341,8 @@ class Tribal_TANF_T7(models.Model): """ class Meta: + """Meta class for the model.""" + verbose_name = 'Tribal TANF T7' id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)