mirror of
https://github.com/django/django.git
synced 2025-07-07 03:09:22 +00:00
[soc2009/model-validation] Removed TODO - feeling more confident about the code
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
70cf6d86fd
commit
021ad1a024
@ -757,7 +757,6 @@ class Model(object):
|
|||||||
if f.name in exclude:
|
if f.name in exclude:
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
# TODO: is the [sg]etattr correct?
|
|
||||||
setattr(self, f.attname, f.clean(getattr(self, f.attname), self))
|
setattr(self, f.attname, f.clean(getattr(self, f.attname), self))
|
||||||
except ValidationError, e:
|
except ValidationError, e:
|
||||||
errors[f.name] = e.messages
|
errors[f.name] = e.messages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user