fixed linting and merge bug

This commit is contained in:
Alysia Broddrick 2023-09-12 18:06:06 -07:00
parent e4c7155aca
commit 4292c38b47
No known key found for this signature in database
GPG key ID: 03917052CD0F06B7
5 changed files with 27 additions and 24 deletions

View file

@ -4,7 +4,6 @@ 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.public_contact import PublicContact
from registrar.models.utility.admin_sort_fields import AdminSortFields
from . import models
from auditlog.models import LogEntry # type: ignore
@ -220,7 +219,7 @@ class DomainAdmin(ListHeaderAdmin):
"_remove_client_hold": self.do_remove_client_hold,
"_edit_domain": self.do_edit_domain,
"_delete_domain": self.do_delete_domain,
"_get_status": self.do_get_status
"_get_status": self.do_get_status,
}
# Check which action button was pressed and call the corresponding function
@ -243,7 +242,7 @@ class DomainAdmin(ListHeaderAdmin):
("Domain %s Should now be deleted " ". Thanks!") % obj.name,
)
return HttpResponseRedirect(".")
def do_get_status(self, request, obj):
try:
statuses = obj.statuses