Hi djangonauts,

I'm currently using the admin interface to create objects with several 
ManyToManyFields, and I'd like to be able to limit the list of items 
presented on the Select drop-down lists, based on other fields values.
Actually, I'm looking for a user input based equivalent of the 
limit_choices_to option. I didn't found anything related in the docs or MLs, 
so I guess it's open. :)

I'm intuitively feeling I need extra JavaScript functions to achieve this, but 
I can't really figure where to start from, especially how to dynamically 
populate drop-down lists from QuerySets (ie. how to get retrieve pythonic 
objects in JS space. Serialization?)

The ideal would be to have a generic framework able to enforce relations 
between form fields, according to the corresponding objects relations. I 
guess it would be a useful addition to the admin interface, but before 
digging into it, I'd like to know if some people have the same requirements, 
and as it seem to be a quite generic need, if somebody has a solution. If 
not, has there been some reflexion about that kind of feature?

Thanks,
-- 
Kilian CAVALOTTI                      Administrateur réseaux et systèmes
UPMC / CNRS - LIP6 (C870)
8, rue du Capitaine Scott                          Tel. : 01 44 27 88 54
75015 Paris - France                               Fax. : 01 44 27 70 00

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to