mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 03:30:50 +02:00
linted and fixed urls
This commit is contained in:
parent
efe3c4e5de
commit
732766da0e
3 changed files with 5 additions and 6 deletions
|
@ -1081,9 +1081,7 @@ class DomainRequestAdmin(ListHeaderAdmin):
|
||||||
)
|
)
|
||||||
|
|
||||||
elif (
|
elif (
|
||||||
obj
|
obj and obj.status == models.DomainRequest.DomainRequestStatus.REJECTED and not obj.rejection_reason
|
||||||
and obj.status == models.DomainRequest.DomainRequestStatus.REJECTED
|
|
||||||
and not obj.rejection_reason
|
|
||||||
):
|
):
|
||||||
# This condition should never be triggered.
|
# This condition should never be triggered.
|
||||||
# The opposite of this condition is acceptable (rejected -> other status and rejection_reason)
|
# The opposite of this condition is acceptable (rejected -> other status and rejection_reason)
|
||||||
|
|
|
@ -66,12 +66,12 @@ urlpatterns = [
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"domain-request/<int:pk>/withdraw",
|
"domain-request/<int:pk>/withdraw",
|
||||||
views.domain-requestWithdrawConfirmation.as_view(),
|
views.DomainRequestWithdrawConfirmation.as_view(),
|
||||||
name="domain-request-withdraw-confirmation",
|
name="domain-request-withdraw-confirmation",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"domain-request/<int:pk>/withdrawconfirmed",
|
"domain-request/<int:pk>/withdrawconfirmed",
|
||||||
views.domain-requestWithdrawn.as_view(),
|
views.DomainRequestWithdrawn.as_view(),
|
||||||
name="domain-request-withdrawn",
|
name="domain-request-withdrawn",
|
||||||
),
|
),
|
||||||
path("health", views.health, name="health"),
|
path("health", views.health, name="health"),
|
||||||
|
|
|
@ -362,7 +362,8 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
||||||
"purpose": self.domain_request.purpose is not None,
|
"purpose": self.domain_request.purpose is not None,
|
||||||
"your_contact": self.domain_request.submitter is not None,
|
"your_contact": self.domain_request.submitter is not None,
|
||||||
"other_contacts": (
|
"other_contacts": (
|
||||||
self.domain_request.other_contacts.exists() or self.domain_request.no_other_contacts_rationale is not None
|
self.domain_request.other_contacts.exists()
|
||||||
|
or self.domain_request.no_other_contacts_rationale is not None
|
||||||
),
|
),
|
||||||
"anything_else": (
|
"anything_else": (
|
||||||
self.domain_request.anything_else is not None or self.domain_request.is_policy_acknowledged is not None
|
self.domain_request.anything_else is not None or self.domain_request.is_policy_acknowledged is not None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue