mptt.admin
¶
-
class
mptt.admin.
MPTTModelAdmin
(model, admin_site)¶ A basic admin class that displays tree items according to their position in the tree. No extra editing functionality beyond what Django admin normally offers.
-
change_list_template
= 'admin/mptt_change_list.html'¶
-
delete_selected_tree
(modeladmin, request, queryset)¶ Deletes multiple instances and makes sure the MPTT fields get recalculated properly. (Because merely doing a bulk delete doesn’t trigger the post_delete hooks.)
-
form
¶ alias of
MPTTAdminForm
-
formfield_for_foreignkey
(db_field, request, **kwargs)¶
-
get_actions
(request)¶
-
get_ordering
(request)¶ Changes the default ordering for changelists to tree-order.
-
media
¶
-