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",
|
"application/<int:pk>/withdrawconfirmed",
|
||||||
views.ApplicationWithdraw.updatestatus,
|
views.ApplicationWithdraw.updatestatus,
|
||||||
name="application-withdrawn",
|
name="application-withdrawn",
|
||||||
|
|
||||||
),
|
),
|
||||||
path("health/", views.health),
|
path("health/", views.health),
|
||||||
path("openid/", include("djangooidc.urls")),
|
path("openid/", include("djangooidc.urls")),
|
||||||
|
|
|
@ -119,7 +119,7 @@ class DomainApplicationFixture:
|
||||||
{
|
{
|
||||||
"status": "withdrawn",
|
"status": "withdrawn",
|
||||||
"organization_name": "Example - Withdrawn",
|
"organization_name": "Example - Withdrawn",
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
@ -29,7 +29,7 @@ class DomainApplication(TimeStampedModel):
|
||||||
(SUBMITTED, SUBMITTED),
|
(SUBMITTED, SUBMITTED),
|
||||||
(INVESTIGATING, INVESTIGATING),
|
(INVESTIGATING, INVESTIGATING),
|
||||||
(APPROVED, APPROVED),
|
(APPROVED, APPROVED),
|
||||||
(WITHDRAWN, WITHDRAWN)
|
(WITHDRAWN, WITHDRAWN),
|
||||||
]
|
]
|
||||||
|
|
||||||
class StateTerritoryChoices(models.TextChoices):
|
class StateTerritoryChoices(models.TextChoices):
|
||||||
|
|
|
@ -484,6 +484,7 @@ class ApplicationStatus(generic.DetailView):
|
||||||
context = super(ApplicationStatus, self).get_context_data(**kwargs)
|
context = super(ApplicationStatus, self).get_context_data(**kwargs)
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class ApplicationWithdraw(generic.DetailView):
|
class ApplicationWithdraw(generic.DetailView):
|
||||||
model = DomainApplication
|
model = DomainApplication
|
||||||
template_name = "application_withdraw_confirmation.html"
|
template_name = "application_withdraw_confirmation.html"
|
||||||
|
@ -491,9 +492,9 @@ class ApplicationWithdraw(generic.DetailView):
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super(ApplicationWithdraw, self).get_context_data(**kwargs)
|
context = super(ApplicationWithdraw, self).get_context_data(**kwargs)
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def updatestatus(request, pk):
|
def updatestatus(request, pk):
|
||||||
application = DomainApplication.objects.get(id=pk)
|
application = DomainApplication.objects.get(id=pk)
|
||||||
application.status = "withdrawn"
|
application.status = "withdrawn"
|
||||||
application.save()
|
application.save()
|
||||||
return HttpResponseRedirect(reverse('home'))
|
return HttpResponseRedirect(reverse("home"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue