Thursday, August 25, 2022

Django inline admin


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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bb308914-7e8b-4f67-81c5-a748031c8e1an%40googlegroups.com.

No comments:

Post a Comment