Inline Formset

35 views
Skip to first unread message

Emmanuel Oppong Ntiamoah

unread,
Sep 18, 2020, 12:50:49 AM9/18/20
to django...@googlegroups.com
Good day friends, Please i have a small challenge, I have an inline formset in my admin where users can add more products to a store. The user can also add a product if It doesn’t already exist. The problem is when the user adds a new product and wants to add more product fields to the Store model the product the user added doesn’t show in the dropdown of the new field unless i refresh the whole interface. Please any way to fix this.
Thanks

From Ntiamoah

coolguy

unread,
Sep 19, 2020, 3:07:32 PM9/19/20
to Django users
Please share some code so we can look into.

Gabriel Araya Garcia

unread,
Sep 20, 2020, 11:52:46 PM9/20/20
to django...@googlegroups.com
I believe that there is not other way to do this with AJAX. This is an asynchronous call to database server. This not refresh your html
bye
   
Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8F6B832D-E616-4330-B7FE-EA3E9C4A6CF6%40gmail.com.
Reply all
Reply to author
Forward
0 new messages