diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-20 22:40:46 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-20 22:40:46 +0000 |
| commit | 9347f748b007b5551abfc0110e410d17baf6eade (patch) | |
| tree | 5e5eeedd7532e1b8034bc4bddd682040092888ce | |
| parent | 928318faf960acac81ee0ab788facd61cd4efd6a (diff) | |
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
| -rw-r--r-- | tests/testapp/models/many_to_one.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testapp/models/many_to_one.py b/tests/testapp/models/many_to_one.py index 91dae95614..37828b6d82 100644 --- a/tests/testapp/models/many_to_one.py +++ b/tests/testapp/models/many_to_one.py @@ -9,6 +9,7 @@ from django.core import meta 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 @@ class Article(meta.Model): 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. |
