Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added an EmailField to the many_to_one API tests

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9347f748b007b5551abfc0110e410d17baf6eade 1 parent 928318f
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/testapp/models/many_to_one.py
View
3  tests/testapp/models/many_to_one.py
@@ -9,6 +9,7 @@
class Reporter(meta.Model):
first_name = meta.CharField(maxlength=30)
last_name = meta.CharField(maxlength=30)
+ email = meta.EmailField()
def __repr__(self):
return "%s %s" % (self.first_name, self.last_name)
@@ -23,7 +24,7 @@ def __repr__(self):
API_TESTS = """
# Create a Reporter.
->>> r = reporters.Reporter(first_name='John', last_name='Smith')
+>>> r = reporters.Reporter(first_name='John', last_name='Smith', email='john@example.com')
>>> r.save()
# Create an Article.
Please sign in to comment.
Something went wrong with that request. Please try again.