mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-21 20:09:23 +02:00
adding comment as per review
This commit is contained in:
parent
a46993d003
commit
a37372e746
1 changed files with 3 additions and 4 deletions
|
@ -488,11 +488,10 @@ class ApplicationStatus(generic.DetailView):
|
|||
class ApplicationWithdraw(generic.DetailView):
|
||||
model = DomainApplication
|
||||
template_name = "application_withdraw_confirmation.html"
|
||||
# The page above will display asking user to confirm if they want to withdraw;
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(ApplicationWithdraw, self).get_context_data(**kwargs)
|
||||
return context
|
||||
|
||||
# if user click on withdraw confirm button, it will be updated to withdraw
|
||||
# and send back to homepage
|
||||
def updatestatus(request, pk):
|
||||
application = DomainApplication.objects.get(id=pk)
|
||||
application.status = "withdrawn"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue