linted and fixed urls

This commit is contained in:
CocoByte 2024-02-29 20:35:02 -07:00
parent efe3c4e5de
commit 732766da0e
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 5 additions and 6 deletions

View file

@ -1081,9 +1081,7 @@ class DomainRequestAdmin(ListHeaderAdmin):
)
elif (
obj
and obj.status == models.DomainRequest.DomainRequestStatus.REJECTED
and not obj.rejection_reason
obj and obj.status == models.DomainRequest.DomainRequestStatus.REJECTED and not obj.rejection_reason
):
# This condition should never be triggered.
# The opposite of this condition is acceptable (rejected -> other status and rejection_reason)

View file

@ -66,12 +66,12 @@ urlpatterns = [
),
path(
"domain-request/<int:pk>/withdraw",
views.domain-requestWithdrawConfirmation.as_view(),
views.DomainRequestWithdrawConfirmation.as_view(),
name="domain-request-withdraw-confirmation",
),
path(
"domain-request/<int:pk>/withdrawconfirmed",
views.domain-requestWithdrawn.as_view(),
views.DomainRequestWithdrawn.as_view(),
name="domain-request-withdrawn",
),
path("health", views.health, name="health"),

View file

@ -362,7 +362,8 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
"purpose": self.domain_request.purpose is not None,
"your_contact": self.domain_request.submitter is not None,
"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": (
self.domain_request.anything_else is not None or self.domain_request.is_policy_acknowledged is not None