Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit f33bdf7e9cbe48d51966abb72cbda0e8b865bdb9 1 parent a33bd6b
Simon Willison authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/regressiontests/admin_views/models.py
View
5 tests/regressiontests/admin_views/models.py
@@ -19,8 +19,9 @@ def changelist_view(self, request):
'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):
Please sign in to comment.
Something went wrong with that request. Please try again.