mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 03:19:24 +02:00
Fix lint errors
This commit is contained in:
parent
166ccbf5ea
commit
601ded68ac
3 changed files with 9 additions and 7 deletions
|
@ -15,8 +15,7 @@ from django.contrib.contenttypes.models import ContentType
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from dateutil.relativedelta import relativedelta # type: ignore
|
from dateutil.relativedelta import relativedelta # type: ignore
|
||||||
from epplibwrapper.errors import ErrorCode, RegistryError
|
from epplibwrapper.errors import ErrorCode, RegistryError
|
||||||
from registrar.models import Contact, Domain, DomainRequest, DraftDomain, User, Website, FederalAgency
|
from registrar.models import Contact, Domain, DomainRequest, DraftDomain, User, Website
|
||||||
from registrar.utility import csv_export
|
|
||||||
from registrar.utility.errors import FSMApplicationError, FSMErrorCodes
|
from registrar.utility.errors import FSMApplicationError, FSMErrorCodes
|
||||||
from registrar.views.utility.mixins import OrderableFieldsMixin
|
from registrar.views.utility.mixins import OrderableFieldsMixin
|
||||||
from django.contrib.admin.views.main import ORDER_VAR
|
from django.contrib.admin.views.main import ORDER_VAR
|
||||||
|
@ -1789,6 +1788,7 @@ class VerifiedByStaffAdmin(ListHeaderAdmin):
|
||||||
obj.requestor = request.user if request.user.is_authenticated else None
|
obj.requestor = request.user if request.user.is_authenticated else None
|
||||||
super().save_model(request, obj, form, change)
|
super().save_model(request, obj, form, change)
|
||||||
|
|
||||||
|
|
||||||
class FederalAgencyAdmin(ListHeaderAdmin):
|
class FederalAgencyAdmin(ListHeaderAdmin):
|
||||||
list_display = ["agency"]
|
list_display = ["agency"]
|
||||||
search_fields = ["agency"]
|
search_fields = ["agency"]
|
||||||
|
|
|
@ -6,10 +6,12 @@ from django.db import migrations, models
|
||||||
from registrar.models import FederalAgency
|
from registrar.models import FederalAgency
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|
||||||
# For linting: RunPython expects a function reference.
|
# For linting: RunPython expects a function reference.
|
||||||
def create_federal_agencies(apps, schema_editor) -> Any:
|
def create_federal_agencies(apps, schema_editor) -> Any:
|
||||||
FederalAgency.create_federal_agencies(apps, schema_editor)
|
FederalAgency.create_federal_agencies(apps, schema_editor)
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
|
|
@ -18,7 +18,7 @@ class FederalAgency(TimeStampedModel):
|
||||||
)
|
)
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return self.agency
|
return f"{self.agency}"
|
||||||
|
|
||||||
# TODO: Update parameters to put in
|
# TODO: Update parameters to put in
|
||||||
def create_federal_agencies(apps, schema_editor):
|
def create_federal_agencies(apps, schema_editor):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue