On 10/2/06, seemant <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm sorry about that. All the ManyToManyFields have this sorta thing:
>
> LEM = models.ManyToManyField (
> Person,
> related_name = 'LEM',
> filter_interface = models.HORIZONTAL,
> limit_choices_to = { 'role__pk': Role.objects.get(name =
> 'LEM').id},
> )
Try this instead:
LEM = models.ManyToManyField (
Person,
related_name = 'LEM',
filter_interface = models.HORIZONTAL,
limit_choices_to = { 'role__name': 'LEM' },
)
--
This message has been scanned for memes and
dangerous content by MindScanner, and is
believed to be unclean.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---