updated comments for code legibility

This commit is contained in:
David Kennedy 2023-11-27 15:08:42 -05:00
parent 8300694a3a
commit 315638c020
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -154,13 +154,13 @@ class DomainView(DomainBaseView):
def in_editable_state(self, pk):
"""Override in_editable_state from DomainPermission
Allow detail page to be editable"""
Allow detail page to be viewable"""
requested_domain = None
if Domain.objects.filter(id=pk).exists():
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:
return True
return False