mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-11 06:54:48 +02:00
formatting
This commit is contained in:
parent
ba306d8f73
commit
bb25253959
4 changed files with 5 additions and 5 deletions
|
@ -66,7 +66,6 @@ urlpatterns = [
|
|||
"application/<int:pk>/withdrawconfirmed",
|
||||
views.ApplicationWithdraw.updatestatus,
|
||||
name="application-withdrawn",
|
||||
|
||||
),
|
||||
path("health/", views.health),
|
||||
path("openid/", include("djangooidc.urls")),
|
||||
|
|
|
@ -119,7 +119,7 @@ class DomainApplicationFixture:
|
|||
{
|
||||
"status": "withdrawn",
|
||||
"organization_name": "Example - Withdrawn",
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -29,7 +29,7 @@ class DomainApplication(TimeStampedModel):
|
|||
(SUBMITTED, SUBMITTED),
|
||||
(INVESTIGATING, INVESTIGATING),
|
||||
(APPROVED, APPROVED),
|
||||
(WITHDRAWN, WITHDRAWN)
|
||||
(WITHDRAWN, WITHDRAWN),
|
||||
]
|
||||
|
||||
class StateTerritoryChoices(models.TextChoices):
|
||||
|
|
|
@ -484,6 +484,7 @@ class ApplicationStatus(generic.DetailView):
|
|||
context = super(ApplicationStatus, self).get_context_data(**kwargs)
|
||||
return context
|
||||
|
||||
|
||||
class ApplicationWithdraw(generic.DetailView):
|
||||
model = DomainApplication
|
||||
template_name = "application_withdraw_confirmation.html"
|
||||
|
@ -496,4 +497,4 @@ class ApplicationWithdraw(generic.DetailView):
|
|||
application = DomainApplication.objects.get(id=pk)
|
||||
application.status = "withdrawn"
|
||||
application.save()
|
||||
return HttpResponseRedirect(reverse('home'))
|
||||
return HttpResponseRedirect(reverse("home"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue