mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
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
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user