remove some reduntant spaces
@@ -854,10 +854,9 @@ class DeleteApplication(RedirectView):
url = "/"
def get_redirect_url(self, *args, **kwargs):
- del_id = kwargs['id']
- application_id = kwargs['pk']
+ del_id = kwargs["id"]
+ application_id = kwargs["pk"]
Application.objects.get(pk=del_id).delete()
message = f"Your application has been withdrawn successfully. Head over to <a href='/users/my_applications/{application_id}'>My Applications</a> to view the status."
messages.add_message(self.request, messages.SUCCESS, message)
return super().get_redirect_url(*args, **kwargs)
-
