Remove redundant handling of cancel button
authorMagnus Hagander <magnus@hagander.net>
Thu, 27 Sep 2018 15:45:09 +0000 (17:45 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 27 Sep 2018 15:45:09 +0000 (17:45 +0200)
postgresqleu/confreg/views.py

index eb596c8849876a15725cfc3b2c959cd66c109158..ff55583790ba67e811b8e52ff4ad3e1d28e8ad2e 100644 (file)
@@ -280,11 +280,6 @@ def register(request, confname, whatfor=None):
                                # Complete registration!
                                return HttpResponseRedirect("{0}confirm/".format(redir_root))
 
-                       # Or did they click cancel?
-                       if request.POST['submit'] == 'Cancel registration':
-                               reg.delete()
-                               return HttpResponseRedirect("{0}canceled/".format(redir_root))
-
                        # Or did they save but we're on the "wrong" url
                        if redir_root:
                                return HttpResponseRedirect(redir_root)