I have a Man model that has a one-to-many relationship with other models, such as Address. I want to edit these models on the same page as Person, which I can already do with the built-in lines. But I also want to reorder the fields.
I want the (inline) Address field to be the third item in the list, but for
('first_name', 'last_name', 'Adress_Inline', 'nationality', etc.) I get this: PersonAdmin.fields' refers to the field 'Address_Inline' that is not on the form.
Is there a way to reorder fields and get specific inline fields between the "regular" Model fields?
Thanks!
django-models django-admin django-forms
nina
source share