fix comment

This commit is contained in:
Matthew Spence 2024-12-31 15:26:30 -06:00
parent c657b9e666
commit 6119b39a59
No known key found for this signature in database

View file

@ -2621,7 +2621,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
"""Display restricted warning, setup the auditlog trail and pass it in extra context, """Display restricted warning, setup the auditlog trail and pass it in extra context,
display warning that status cannot be changed from 'Approved' if domain is in Ready state""" display warning that status cannot be changed from 'Approved' if domain is in Ready state"""
# Fetch the Contact instance # Fetch the domain request instance
domain_request: models.DomainRequest = models.DomainRequest.objects.get(pk=object_id) domain_request: models.DomainRequest = models.DomainRequest.objects.get(pk=object_id)
if domain_request.approved_domain and domain_request.approved_domain.state == models.Domain.State.READY: if domain_request.approved_domain and domain_request.approved_domain.state == models.Domain.State.READY:
domain = domain_request.approved_domain domain = domain_request.approved_domain