admin.py#
- class reorder_items_widget.admin.GetReorderItemsFieldMixin#
Bases:
objectA mixin to get the reorder items field from the model.
- class reorder_items_widget.admin.ReorderItemsInlineMixin(*args, **kwargs)#
Bases:
GetReorderItemsFieldMixinAn inline mixin adding the name of the
ReorderItemsFieldto the fields attribute and putting theReorderItemsWidgetin place via the formfield_overrides attribute.
- class reorder_items_widget.admin.ReorderItemsModelAdminMixin(*args, **kwargs)#
Bases:
GetReorderItemsFieldMixinAn inline mixin adding the name of the
ReorderItemsFieldto the list_display, exclude and list_editable attributes. It also equips the changelist form with theReorderItemsWidget.
- class reorder_items_widget.admin.ReorderItemsInline(*args, **kwargs)#
Bases:
ReorderItemsInlineMixin,TabularInlineA TabularInline using the
ReorderItemsInlineMixin.
- class reorder_items_widget.admin.ReorderItemsModelAdmin(*args, **kwargs)#
Bases:
ReorderItemsModelAdminMixin,ModelAdminA model admin class using the
ReorderItemsModelAdminMixinmixin.