mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +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:
parent
a33bd6b594
commit
f33bdf7e9c
@ -19,8 +19,9 @@ class ArticleAdmin(admin.ModelAdmin):
|
|||||||
'extra_var': 'Hello!'
|
'extra_var': 'Hello!'
|
||||||
})
|
})
|
||||||
|
|
||||||
class CustomArticle(Article):
|
class CustomArticle(models.Model):
|
||||||
pass
|
content = models.TextField()
|
||||||
|
date = models.DateTimeField()
|
||||||
|
|
||||||
class CustomArticleAdmin(admin.ModelAdmin):
|
class CustomArticleAdmin(admin.ModelAdmin):
|
||||||
def changelist_view(self, request):
|
def changelist_view(self, request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user