1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Improved on r17454 to ensure that collapse.js only gets minified when DEBUG is False.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Julien Phalip
2012-02-05 10:26:05 +00:00
parent a90aad3511
commit 0f6cf4aba1
6 changed files with 57 additions and 63 deletions

View File

@@ -35,7 +35,19 @@ callable_year.admin_order_field = 'date'
class ArticleInline(admin.TabularInline):
model = Article
prepopulated_fields = {
'title' : ('content',)
}
fieldsets=(
('Some fields', {
'classes': ('collapse',),
'fields': ('title', 'content')
}),
('Some other fields', {
'classes': ('wide',),
'fields': ('date', 'section')
})
)
class ChapterInline(admin.TabularInline):
model = Chapter
@@ -512,6 +524,7 @@ class ReportAdmin(admin.ModelAdmin):
name='cable_extra'),
)
site = admin.AdminSite(name="admin")
site.register(Article, ArticleAdmin)
site.register(CustomArticle, CustomArticleAdmin)