Answer the question
In order to leave comments, you need to log in
How to select values in the select field in the edit post form in the Django admin?
There is a Section model, it has fields
owner - this is the owner of the current record (ForeignKey from the Article model)
parent is the parent of the current record (ForeignKey from the same Section model)
When editing a record, I first select the owner,
after that I want the field parent, I was only able to choose from values with selection by owner. How to do it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question