newforms: Removed redundant declaration of Form.clean(). Thanks, SmileyChris. Refs #3026
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a08ed9d165
commit
48b36bb4a4
|
@ -56,11 +56,6 @@ class Form(object):
|
||||||
raise KeyError('Key %r not found in Form' % name)
|
raise KeyError('Key %r not found in Form' % name)
|
||||||
return BoundField(self, field, name)
|
return BoundField(self, field, name)
|
||||||
|
|
||||||
def clean(self):
|
|
||||||
if self.__errors is None:
|
|
||||||
self.full_clean()
|
|
||||||
return self.clean_data
|
|
||||||
|
|
||||||
def errors(self):
|
def errors(self):
|
||||||
"Returns an ErrorDict for self.data"
|
"Returns an ErrorDict for self.data"
|
||||||
if self.__errors is None:
|
if self.__errors is None:
|
||||||
|
|
Loading…
Reference in New Issue