Commit 476fcefd authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

removing dead code

parent 48998e3d
......@@ -122,8 +122,6 @@ def user_delete(request):
"administrator to solve the issue.\nMessage:\n" + str(e)))
except Exception as e:
messages.error(request, e)
else:
messages.error(request, 'Please correct the error below.')
else:
form = UserDeleteForm(instance=request.user)
return render(request, 'registration/small_form_host.html', {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment