Ticket #6756: FlatPageAdminCollapse.diff

File FlatPageAdminCollapse.diff, 678 bytes (added by mb0@…, 17 years ago)

FlatPageAdmin collapse patch

  • contrib/flatpages/models.py

     
    3535class FlatPageAdmin(admin.ModelAdmin):
    3636    fieldsets = (
    3737        (None, {'fields': ('url', 'title', 'content', 'sites')}),
    38         ('Advanced options', {'classes': 'collapse', 'fields': ('enable_comments', 'registration_required', 'template_name')}),
     38        ('Advanced options', {'classes': ('collapse',), 'fields': ('enable_comments', 'registration_required', 'template_name')}),
    3939    )
    4040    list_filter = ('sites',)
    4141    search_fields = ('url', 'title')
Back to Top