Hi, I currently have a foreign key for which the model should allow the selection of a subset of objects depending on another object value.
Let's say model A has a foreign key on model B. Model A & B have a field called restriction. For a given A object, I'd like to display B objects that have the same restriction field value as the A object. I've browsed a bit about the limit_choices_to but couldn't find a decent solution for that issue. To me complex queries wouldn't solve the issue as I need to access the object field value. Does anyone have a solution for that ? Regards, Xavier. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.