I have a similar problem with limit_choices_to and MR. Within the admin interface I'd like to limit the choices for a persons 'personalAssistant' to come from a group called 'Administration'. At the moment, it doesn't work, all 'Persons' are shown in the 'personalAssistant' popup, and I know I have some that have the WorkGroup 'Administration'. Here's my model:
class WorkGroup(models.Model): groupName = models.CharField(maxlength=50) def __repr__(self): return "%s" % self.groupName class Person(models.Model): firstName = models.CharField(maxlength=50) lastName = models.CharField(maxlength=50) title = models.CharField(maxlength=20, blank=True) null=True) groups = models.ManyToManyField(WorkGroup, related_name = 'groups', blank=True) coordinator = models.ManyToManyField(WorkGroup, related_name = 'coordinator', blank=True) personalAssistant = models.ForeignKey("self", blank=True, null=True, limit_choices_to = {'groups_groupName' : 'Administration'}) # PA for this person But the limit_to_choices isn't limiting choices at all. Does anyone have any pointers? Cheers, Tone --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---