mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 02:36:02 +02:00
updated comments for code legibility
This commit is contained in:
parent
8300694a3a
commit
315638c020
1 changed files with 2 additions and 2 deletions
|
@ -154,13 +154,13 @@ class DomainView(DomainBaseView):
|
||||||
|
|
||||||
def in_editable_state(self, pk):
|
def in_editable_state(self, pk):
|
||||||
"""Override in_editable_state from DomainPermission
|
"""Override in_editable_state from DomainPermission
|
||||||
Allow detail page to be editable"""
|
Allow detail page to be viewable"""
|
||||||
|
|
||||||
requested_domain = None
|
requested_domain = None
|
||||||
if Domain.objects.filter(id=pk).exists():
|
if Domain.objects.filter(id=pk).exists():
|
||||||
requested_domain = Domain.objects.get(id=pk)
|
requested_domain = Domain.objects.get(id=pk)
|
||||||
|
|
||||||
# if domain is editable return true
|
# return true if the domain exists, this will allow the detail page to load
|
||||||
if requested_domain:
|
if requested_domain:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue