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):
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"