diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-25 22:51:30 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-25 22:51:30 +0000 |
| commit | 25264c86048d442a4885dfebae94510e2fa0c1e4 (patch) | |
| tree | bb02799b624fb0d6f931d208509ffbb50d00e358 /tests/testapp/models/basic.py | |
| parent | aec0a73d73324820c767758afd250fc21a2896ef (diff) | |
Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models
git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/testapp/models/basic.py')
| -rw-r--r-- | tests/testapp/models/basic.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testapp/models/basic.py b/tests/testapp/models/basic.py index c51ceccb9d..ebd784137a 100644 --- a/tests/testapp/models/basic.py +++ b/tests/testapp/models/basic.py @@ -7,10 +7,8 @@ This is a basic model with only two non-primary-key fields. from django.core import meta class Article(meta.Model): - fields = ( - meta.CharField('headline', maxlength=100, default='Default headline'), - meta.DateTimeField('pub_date'), - ) + headline = meta.CharField(maxlength=100, default='Default headline') + pub_date = meta.DateTimeField() API_TESTS = """ # No articles are in the system yet. |
