From: Seth Woodworth Date: Thu, 21 Mar 2013 18:14:29 +0000 (-0400) Subject: print errors on invalid forms? X-Git-Tag: release-20150131~474^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef376018bb9e14ffee70e4cbad2063eedf82a371;p=oweals%2Fkarmaworld.git print errors on invalid forms? --- diff --git a/karmaworld/apps/notes/views.py b/karmaworld/apps/notes/views.py index 50c301a..9a78b70 100644 --- a/karmaworld/apps/notes/views.py +++ b/karmaworld/apps/notes/views.py @@ -57,6 +57,11 @@ class NoteSaveView(FormView, SingleObjectMixin): self.object.save() return super(NoteSaveView, self).form_valid(form) + def form_invalid(self, form): + """ Do stuff when the form is invalid !!! TODO """ + print self.form + print self.form.errors + class NoteView(View): """ Notes superclass that wraps http methods """