Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored November 20, 2005

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  tests/testapp/models/many_to_one.py
3  tests/testapp/models/many_to_one.py
@@ -9,6 +9,7 @@
9 9
 class Reporter(meta.Model):
10 10
     first_name = meta.CharField(maxlength=30)
11 11
     last_name = meta.CharField(maxlength=30)
  12
+    email = meta.EmailField()
12 13
 
13 14
     def __repr__(self):
14 15
         return "%s %s" % (self.first_name, self.last_name)
@@ -23,7 +24,7 @@ def __repr__(self):
23 24
 
24 25
 API_TESTS = """
25 26
 # Create a Reporter.
26  
->>> r = reporters.Reporter(first_name='John', last_name='Smith')
  27
+>>> r = reporters.Reporter(first_name='John', last_name='Smith', email='john@example.com')
27 28
 >>> r.save()
28 29
 
29 30
 # Create an Article.

0 notes on commit 9347f74

Please sign in to comment.
Something went wrong with that request. Please try again.