Skip to content

Commit 1f9259d

Browse files
authored
feat: sortable inlines (#785)
1 parent ba0c335 commit 1f9259d

File tree

10 files changed

+517
-26
lines changed

10 files changed

+517
-26
lines changed

src/unfold/admin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,12 @@ def response_add(
560560
class TabularInline(ModelAdminMixin, BaseTabularInline):
561561
formfield_overrides = FORMFIELD_OVERRIDES_INLINE
562562
readonly_preprocess_fields = {}
563+
ordering_field = None
564+
hide_ordering_field = False
563565

564566

565567
class StackedInline(ModelAdminMixin, BaseStackedInline):
566568
formfield_overrides = FORMFIELD_OVERRIDES_INLINE
567569
readonly_preprocess_fields = {}
570+
ordering_field = None
571+
hide_ordering_field = False

0 commit comments

Comments
 (0)