From 324a1a29c5464579465c34c4b50f9d79c103e2d0 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:33:21 -0600 Subject: [PATCH] Linting --- src/registrar/tests/test_views_domain.py | 1 - src/registrar/views/domain.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/registrar/tests/test_views_domain.py b/src/registrar/tests/test_views_domain.py index 828919814..45c259001 100644 --- a/src/registrar/tests/test_views_domain.py +++ b/src/registrar/tests/test_views_domain.py @@ -36,7 +36,6 @@ FederalAgency, Portfolio, Suborganization, - SeniorOfficial, ) from datetime import date, datetime, timedelta from django.utils import timezone diff --git a/src/registrar/views/domain.py b/src/registrar/views/domain.py index a2a374cee..8e17c7b59 100644 --- a/src/registrar/views/domain.py +++ b/src/registrar/views/domain.py @@ -23,7 +23,6 @@ DomainInvitation, User, UserDomainRole, - Portfolio, PublicContact, ) from registrar.utility.enums import DefaultEmail @@ -231,7 +230,7 @@ def form_valid(self, form): # superclass has the redirect return super().form_valid(form) - + def has_permission(self): """Override for the has_permission class to exclude portfolio users""" @@ -285,8 +284,7 @@ def form_valid(self, form): # superclass has the redirect return super().form_valid(form) - - + def has_permission(self): """Override for the has_permission class to exclude portfolio users"""