mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user