Admin classes



Django 1.6 requires _popup=1 for raw id field popups, earlier versions require pop=1.

The explicit version check is a bit ugly, but works well.

(Wrong parameters aren’t simply ignored by django.contrib.admin, the change list actively errors out by redirecting to ?e=1)


Removes a few fields from FeinCMS admin inlines, those being id, DELETE and ORDER currently.

Additionally, it ensures that dynamically added fields (i.e. ApplicationContent‘s admin_fields option) are shown.


FilterSpec classes for list_filter customization

class feincms.admin.filterspecs.CategoryFieldListFilter(f, request, params, model, model_admin, field_path=None)

Customization of ChoicesFilterSpec which sorts in the user-expected format

my_model_field.category_filter = True

class feincms.admin.filterspecs.ParentFieldListFilter(f, request, params, model, model_admin, field_path=None)

Improved list_filter display for parent Pages by nicely indenting hierarchy

In theory this would work with any mptt model which uses a “title” attribute.

my_model_field.page_parent_filter = True

Table Of Contents

Previous topic

FeinCMS core

Next topic

Page module

This Page