This works (it's the pa - personal assistant - bit you want);
class Person(models.Model):
firstName = models.CharField(maxlength=50)
lastName = models.CharField(maxlength=50)
organization = models.ManyToManyField(Organization, related_name =
'organization')
emailAddress = models.EmailField()
title = models.CharField(maxlength=20, blank=True)
phone = models.CharField(maxlength=20, blank=True)
mobile = models.CharField(maxlength=20, blank=True)
# extraneous stuff not included
groups = models.ManyToManyField(WorkGroup, related_name = 'groups',
blank=True)
coordinator = models.ManyToManyField(WorkGroup, related_name =
'coordinator', blank=True)
photos = models.ForeignKey(Photo, blank=True, null=True)
pa = models.ForeignKey("self", blank=True, null=True,
limit_choices_to = {'groups__groupName__exact' : 'Administration'})
# PA for this person
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---