I've got a similar situaton with trying to use 'limit_choices_to' on an intermediary table, but I haven't been able to get it working... Here's a quick abbreviated example:
class Category(models.Model): name = models.CharField(maxlength=200) class Photo(models.Model): name = models.CharField(maxlength=200) category = models.ManyToManyField(Category) class CategoryPhoto(models.Model): category = models.ForeingKey(Category, edit_inline=models.Tabular) position = models.PositiveIntegerField(core=True) photo = models.ForeignKey(Photo, limit_choices_to={'category__pk': ???}) ??? is where I basically want to use the id of the current category being edited to limit the photo choices to those set for that category - since there's over 100 records in the db so far. Any chance this would be possible with a similar Q class? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---