From f33bdf7e9cbe48d51966abb72cbda0e8b865bdb9 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 12 Jun 2008 21:50:13 +0000 Subject: [PATCH] newforms-admin: custom changelist test now avoids model inheritance (since the admin doesn't support that yet) git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7628 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/admin_views/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index 27d1027b1f..b6d247a65c 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -19,8 +19,9 @@ class ArticleAdmin(admin.ModelAdmin): 'extra_var': 'Hello!' }) -class CustomArticle(Article): - pass +class CustomArticle(models.Model): + content = models.TextField() + date = models.DateTimeField() class CustomArticleAdmin(admin.ModelAdmin): def changelist_view(self, request):