Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
raftmsohani committed Jun 3, 2024
1 parent 7f6369f commit 01cc69a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tdrs-backend/tdpservice/search_indexes/admin/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)."""
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
14 changes: 14 additions & 0 deletions tdrs-backend/tdpservice/search_indexes/models/ssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions tdrs-backend/tdpservice/search_indexes/models/tanf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions tdrs-backend/tdpservice/search_indexes/models/tribal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 01cc69a

Please sign in to comment.