In the admin site when creating/updating an object A which has field “fk” which is a foreign key related to an object B (displayed in a select element) you can create/update objects B in a popup window.
I am wondering how to open this new window with Django. I did not find anything about this…
Thanks four your help
You can find the code for what the admin is doing in
I am now able to open the popup, but I have troubles regarding how to define the url to redirect to at the end of my creation view (generic CreateView) and to get the select choice up to date…
model = Framework_agreement
fields=['number', 'company', 'signature_date']
I guess that the view has to handle “_to_field=id” and _“popup=1” variables…
Could you give me some hints?
Unfortunately I can’t. For the few cases where I have done such things, I’ve used the modal pop-up technique using jQuery or Bootstrap
I will invstigate this track…