mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 01:27:03 +02:00
Black changes - would not pass otherwise
This commit is contained in:
parent
9ed83a51da
commit
2db74e6b00
4 changed files with 38 additions and 9 deletions
|
@ -4,7 +4,10 @@ from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
|
|||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.http.response import HttpResponseRedirect
|
||||
from django.urls import reverse
|
||||
from registrar.models.utility.admin_form_order_helper import AdminFormOrderHelper, SortingDict # noqa
|
||||
from registrar.models.utility.admin_form_order_helper import (
|
||||
AdminFormOrderHelper,
|
||||
SortingDict,
|
||||
)
|
||||
from . import models
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -10,7 +10,16 @@ from typing import List, Dict
|
|||
from django.conf import settings
|
||||
from django.contrib.auth import get_user_model, login
|
||||
|
||||
from registrar.models import Contact, DraftDomain, Website, DomainApplication, DomainInvitation, User, DomainInformation, Domain # noqa
|
||||
from registrar.models import (
|
||||
Contact,
|
||||
DraftDomain,
|
||||
Website,
|
||||
DomainApplication,
|
||||
DomainInvitation,
|
||||
User,
|
||||
DomainInformation,
|
||||
Domain,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -1,9 +1,26 @@
|
|||
from django.test import TestCase, RequestFactory, Client
|
||||
from django.contrib.admin.sites import AdminSite
|
||||
# noqa is used on all three of these as the linter doesn't like the length of this line
|
||||
from registrar.admin import DomainApplicationAdmin, ListHeaderAdmin, MyUserAdmin, AuditedAdmin # noqa
|
||||
from registrar.models import DomainApplication, DomainInformation, User, Contact, DomainInvitation # noqa
|
||||
from .common import completed_application, mock_user, create_superuser, create_user, multiple_unalphabetical_domain_objects # noqa
|
||||
|
||||
from registrar.admin import (
|
||||
DomainApplicationAdmin,
|
||||
ListHeaderAdmin,
|
||||
MyUserAdmin,
|
||||
AuditedAdmin,
|
||||
)
|
||||
from registrar.models import (
|
||||
DomainApplication,
|
||||
DomainInformation,
|
||||
User,
|
||||
Contact,
|
||||
DomainInvitation,
|
||||
)
|
||||
from .common import (
|
||||
completed_application,
|
||||
mock_user,
|
||||
create_superuser,
|
||||
create_user,
|
||||
multiple_unalphabetical_domain_objects,
|
||||
)
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue