Updated README to include information on generic inline imports.
parent
ece9876a47
commit
b804f25585
|
|
@ -40,7 +40,7 @@ When a model is sortable, a tool-area link will be added that says "Change Order
|
||||||
Click this link, and you will be taken to the custom view where you can drag-and-drop
|
Click this link, and you will be taken to the custom view where you can drag-and-drop
|
||||||
the records into order.
|
the records into order.
|
||||||
|
|
||||||
Tabular inlines may be drag-and-dropped into any order directly from the change form.
|
Inlines may be drag-and-dropped into any order directly from the change form.
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
@ -129,6 +129,12 @@ SortableStackedInline:
|
||||||
class MySortableStackedInline(SortableStackedInline):
|
class MySortableStackedInline(SortableStackedInline):
|
||||||
"""Your inline options go here"""
|
"""Your inline options go here"""
|
||||||
|
|
||||||
|
There are also generic equivalents that you can inherit from:
|
||||||
|
|
||||||
|
from adminsortable.admin import (SortableGenericTabularInline,
|
||||||
|
SortableGenericStackedInline)
|
||||||
|
|
||||||
|
|
||||||
*** IMPORTANT ***
|
*** IMPORTANT ***
|
||||||
With stacked inline models, their height can dynamically increase,
|
With stacked inline models, their height can dynamically increase,
|
||||||
which can cause sortable stacked inlines to not behave as expected.
|
which can cause sortable stacked inlines to not behave as expected.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue