projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2139e90
)
print errors on invalid forms?
author
Seth Woodworth
<seth@sethish.com>
Thu, 21 Mar 2013 18:14:29 +0000
(14:14 -0400)
committer
Seth Woodworth
<seth@sethish.com>
Thu, 21 Mar 2013 18:14:29 +0000
(14:14 -0400)
karmaworld/apps/notes/views.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/views.py
b/karmaworld/apps/notes/views.py
index 50c301a9003a3bf0a71c66da72c1ae226054bc86..9a78b70a17a8b27579a5e6ce0f5445c32e19c8e7 100644
(file)
--- 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 """