Django inline admin

7 views
Skip to first unread message

Shivam Kishan

unread,
Aug 25, 2022, 11:44:26 AM8/25/22
to Django users

I have a model called "Files" registered with the admin it has two fields "file" and "filename" and in the same page we are showing another model fields in "JobsInline".This inline have "device ", "Lang"," AI_field" it is Multiple Select Field. I want to create multiple inline objects based on the choices selected in The multipleSelectField on saving objects of files, behind the scene.

Let's say user selected file and filename, and then device is selected. I want on selecting one device and if 5 choices are selected then 5 objects of inline model should be created.

Reply all
Reply to author
Forward
0 new messages