mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
updated code for readability
This commit is contained in:
parent
5673d5951e
commit
c1c428b6c3
1 changed files with 3 additions and 2 deletions
|
@ -1455,8 +1455,9 @@ class DomainRequestAdmin(ListHeaderAdmin):
|
|||
# find the index to determine the referring url after the path
|
||||
index = http_referer.find(request.path)
|
||||
# Check if there is a character following the path in http_referer
|
||||
if index + len(request.path) < len(http_referer):
|
||||
next_char = http_referer[index + len(request.path)]
|
||||
next_char_index = index + len(request.path)
|
||||
if index + next_char_index < len(http_referer):
|
||||
next_char = http_referer[next_char_index]
|
||||
|
||||
# Check if the next character is a digit, if so, this indicates
|
||||
# a change view for domain request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue