[Python] Ordering admin.ModelAdmin objects in Django Admin

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    Let's say I have my pizza application with Topping and Pizza classes and they show in Django Admin like this:

    PizzaApp
    -
    Toppings >>>>>>>>>> Add / Change

    Pizzas >>>>>>>>>> Add / Change


    But I want them like this:

    PizzaApp
    -
    Pizzas >>>>>>>>>> Add / Change

    Toppings >>>>>>>>>> Add / Change


    How do I configure that in my admin.py?

    Continue reading...

Compartilhe esta Página