admin.py#

class reorder_items_widget.admin.GetReorderItemsFieldMixin#

Bases: object

A mixin to get the reorder items field from the model.

class reorder_items_widget.admin.ReorderItemsInlineMixin(*args, **kwargs)#

Bases: GetReorderItemsFieldMixin

An inline mixin adding the name of the ReorderItemsField to the fields attribute and putting the ReorderItemsWidget in place via the formfield_overrides attribute.

class reorder_items_widget.admin.ReorderItemsModelAdminMixin(*args, **kwargs)#

Bases: GetReorderItemsFieldMixin

An inline mixin adding the name of the ReorderItemsField to the list_display, exclude and list_editable attributes. It also equips the changelist form with the ReorderItemsWidget.

class reorder_items_widget.admin.ReorderItemsInline(*args, **kwargs)#

Bases: ReorderItemsInlineMixin, TabularInline

A TabularInline using the ReorderItemsInlineMixin.

class reorder_items_widget.admin.ReorderItemsModelAdmin(*args, **kwargs)#

Bases: ReorderItemsModelAdminMixin, ModelAdmin

A model admin class using the ReorderItemsModelAdminMixin mixin.