From 25264c86048d442a4885dfebae94510e2fa0c1e4 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 25 Aug 2005 22:51:30 +0000 Subject: 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 --- tests/testapp/models/basic.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/testapp/models/basic.py') 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. -- cgit v1.3