adding comment as per review

This commit is contained in:
Jon Roberts 2023-04-17 13:59:17 -06:00
parent a46993d003
commit a37372e746
No known key found for this signature in database
GPG key ID: EED093582198B041

View file

@ -488,11 +488,10 @@ class ApplicationStatus(generic.DetailView):
class ApplicationWithdraw(generic.DetailView): class ApplicationWithdraw(generic.DetailView):
model = DomainApplication model = DomainApplication
template_name = "application_withdraw_confirmation.html" 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): # if user click on withdraw confirm button, it will be updated to withdraw
context = super(ApplicationWithdraw, self).get_context_data(**kwargs) # and send back to homepage
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"