Closed emieza closed 3 years ago
Admin panel has all objects as independent forms. Though, some of them are nested with PK and need to be filtered (for example, the MPs of a Career).
This objects need to be nested in the forms using inlines, at least the following ones:
inlines
Term > Career > MP > UF User > Enrolment > Requirements > Uploads (needs rediscussion) User > Enrolment > UF (needs rediscussion)
You can see an example on how to customize the admin backend for a model and make inlines in the admin.py file in import branch.
admin.py
import
Admin panel has all objects as independent forms. Though, some of them are nested with PK and need to be filtered (for example, the MPs of a Career).
This objects need to be nested in the forms using
inlines
, at least the following ones:You can see an example on how to customize the admin backend for a model and make inlines in the
admin.py
file inimport
branch.