mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #3278 -- newforms: Fixed bug in DeclarativeFieldsMetaclass where it inadvertently overrode the class' name. Thanks, russblau@imapmail.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1551,7 +1551,7 @@ False
|
||||
>>> p.clean_data
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
AttributeError: 'birthday' object has no attribute 'clean_data'
|
||||
AttributeError: 'Person' object has no attribute 'clean_data'
|
||||
>>> print p
|
||||
<tr><th><label for="id_first_name">First name:</label></th><td><ul class="errorlist"><li>This field is required.</li></ul><input type="text" name="first_name" id="id_first_name" /></td></tr>
|
||||
<tr><th><label for="id_last_name">Last name:</label></th><td><ul class="errorlist"><li>This field is required.</li></ul><input type="text" name="last_name" id="id_last_name" /></td></tr>
|
||||
@@ -1585,7 +1585,7 @@ False
|
||||
>>> p.clean_data
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
AttributeError: 'birthday' object has no attribute 'clean_data'
|
||||
AttributeError: 'Person' object has no attribute 'clean_data'
|
||||
>>> print p
|
||||
<tr><th><label for="id_first_name">First name:</label></th><td><input type="text" name="first_name" id="id_first_name" /></td></tr>
|
||||
<tr><th><label for="id_last_name">Last name:</label></th><td><input type="text" name="last_name" id="id_last_name" /></td></tr>
|
||||
@@ -1627,7 +1627,7 @@ u'<ul class="errorlist"><li>first_name<ul class="errorlist"><li>This field is re
|
||||
>>> p.clean_data
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
AttributeError: 'birthday' object has no attribute 'clean_data'
|
||||
AttributeError: 'Person' object has no attribute 'clean_data'
|
||||
>>> p['first_name'].errors
|
||||
[u'This field is required.']
|
||||
>>> p['first_name'].errors.as_ul()
|
||||
|
||||
Reference in New Issue
Block a user