Yes, it's definitely MR - revision 2530 - I just 'svn up' to 2605 and
the admin interface still works the same. I've just realised that's not
what your problem is, although there are plenty of posts where the word
'parent' is mentioned...

Here's the relevant model definitions for a 'Person'. WorkGroup and
Organization are other models.

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)
    useSMS = models.BooleanField()
    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
-~----------~----~----~----~------~----~------~--~---

Reply via email to