mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 05:54:11 +02:00
Add comment
This commit is contained in:
parent
a0ce0c137a
commit
4a7aa0b484
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,9 @@ class DomainPermission(PermissionsLoginMixin):
|
||||||
if DomainInformation.objects.filter(id=pk).exists():
|
if DomainInformation.objects.filter(id=pk).exists():
|
||||||
requested_domain = DomainInformation.objects.get(id=pk)
|
requested_domain = DomainInformation.objects.get(id=pk)
|
||||||
|
|
||||||
|
# If no domain_application object exists and we are
|
||||||
|
# coming from the manage_domain dashboard, this is likely
|
||||||
|
# a transition domain.
|
||||||
domain_application = requested_domain.domain_application
|
domain_application = requested_domain.domain_application
|
||||||
if not hasattr(domain_application, "status"):
|
if not hasattr(domain_application, "status"):
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue