Friday, February 26, 2021

Popups in django forms?

I want start a new project with good support for popups (select+options) in forms.

My requirements are (and I think for real life project they are neccessary):
1. ajax retrieved options based on users selection (outside of admin and inside admin),
2. dynamic filtering of (especially related) options (again outside/inside admin, include admin inlines); example: country & city: only cities from selected country should be accessible.

I have implemented this
https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html
include (2) functionality in inlines and it works.

However it requires to much individual work in each case and doesn't combine with ajax.

Is there a better way how to achieve (1)+(2) everywhere in application?
Are there some packages? What about django-autocomplete-light?

Best regards,
Mirek

--
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/0a566f3b-01f1-464c-9294-fd982367caf8n%40googlegroups.com.

No comments:

Post a Comment