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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user