git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed the password change form on the client side, and fixed form handling in the...
[philo.git]
/
contrib
/
gilbert
/
plugins
/
models.py
diff --git
a/contrib/gilbert/plugins/models.py
b/contrib/gilbert/plugins/models.py
index
b765482
..
5217df3
100644
(file)
--- a/
contrib/gilbert/plugins/models.py
+++ b/
contrib/gilbert/plugins/models.py
@@
-215,10
+215,10
@@
class ModelAdmin(Plugin):
form = self.form_class(request.POST, request.FILES, instance=instance)
-
try
:
+
if form.is_valid()
:
saved = form.save()
return True, None, saved.pk
- e
xcept ValueError
:
+ e
lse
:
return False, form.errors
def data_serialize_object(self, obj):