Skip to content

Incrementing default for new sortable entries + making new entries sortable before saving #1648

@raayu83

Description

@raayu83

As always, great work you are doing on django-unfold! Nothing that comes close to it for building Admin Interfaces!

I've a suggestion for fine-tuning the sortable inlines:

Do you have any examples?

Right now, the default ordering value is static for https://unfoldadmin.com/docs/inlines/sortable/.

Is it a third party application feature request?

No

Describe your feature request
Would it be possible to add an option to make each new added entry have the value of max(previous_entries_orders) + 1 ? E.g. if the current max is 99, make the new entry 100. if you add another entry before saving, make it 101.

In this context, it would also be great if new entries could be ordered in the UI before saving.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions