Thursday, January 21, 2021

Help with replicating admin Add New Button Control

I need to have the functionality of the admin addnew button to open a popup and add new related object and then updated in the model combo field.

Also, the edit.

I find a good source that uses the javascripts of the admin module. I tried it 
It works in opening the popup and adding related object but not able to get back to the original form and update the lookup of the field to include the added record.

https://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/

I feel it is important to have this functionality in all our forms.

I want to understand how the javascripts works.

Rregards,
Nader Soliman

--
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/2ef8cf86-cd14-489e-b990-4e776b9f8e51n%40googlegroups.com.

No comments:

Post a Comment