diff options
| author | Simon Willison <simon@simonwillison.net> | 2008-06-12 21:50:13 +0000 |
|---|---|---|
| committer | Simon Willison <simon@simonwillison.net> | 2008-06-12 21:50:13 +0000 |
| commit | f33bdf7e9cbe48d51966abb72cbda0e8b865bdb9 (patch) | |
| tree | b36865a6a01147ff391ed0e512f3354f1d80cb9d | |
| parent | a33bd6b594b67126b70235a1bc1ab2ba95805d5e (diff) | |
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
| -rw-r--r-- | tests/regressiontests/admin_views/models.py | 5 |
1 files 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): |
