I have two apps in my Django website, one is called Playlist and it has Song model which in turn has a BooleanField. The other app is called Spotlight and has a Track model. In the Track model, I want to display only the Songs (of the Playlist app) whose BooleanField value equals to True. I know how to do that in the webpage by using filters, but I don’t know how to achieve that in the admin panel. How can I do that?
Thanks
I have two apps in my Django website, one is called Playlist and it
Share
Assuming you have a
ForeignKeyorManyToManyField, you wantlimit_choices_to.