mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
newforms-admin: Merged to [4616]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -146,4 +146,8 @@ u'john@example.com'
|
||||
>>> p.validate()
|
||||
{'email': ['Enter a valid e-mail address.']}
|
||||
|
||||
# Make sure that Date and DateTime return validation errors and don't raise Python errors.
|
||||
>>> Person(name='John Doe', is_child=True, email='abc@def.com').validate()
|
||||
{'favorite_moment': ['This field is required.'], 'birthdate': ['This field is required.']}
|
||||
|
||||
"""}
|
||||
|
||||
Reference in New Issue
Block a user