Re: Filtering foreign items in admin
Hi Rob, Perfect! Thank's Robert Slotboom Op 10-feb-07 om 17:13 heeft Rob Hudson het volgende geschreven: > "limit_choices_to --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Filtering foreign items in admin
Take a look at "limit_choices_to" in the model api docs and see if that will do what you need. On Feb 9, 4:27 am, "Rob Slotboom" <[EMAIL PROTECTED]> wrote: > For a several models I use a FK to photos. The drop down in admin to > choose from lists all photos. > Can this list be filtered so I can restrict the available photos for > some models? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Filtering foreign items in admin
For a several models I use a FK to photos. The drop down in admin to choose from lists all photos. Can this list be filtered so I can restrict the available photos for some models? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---