Skip to content

Commit

Permalink
newforms-admin: custom changelist test now avoids model inheritance (…
Browse files Browse the repository at this point in the history
…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
Simon Willison committed Jun 12, 2008
1 parent a33bd6b commit f33bdf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/regressiontests/admin_views/models.py
Expand Up @@ -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):
Expand Down

0 comments on commit f33bdf7

Please sign in to comment.