Glad you solved it, PS the patch wasnt done by me BTW. Kudos to Luke.
--~--~-~--~~~---~--~~
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 unsub
Way-Hay!, this works
pa = models.ForeignKey("self", blank=True, null=True,
limit_choices_to = {'groups__groupName__exact' : 'Administration'})
# PA for this person
Now the only people who are in the popup are those who are in the group
'Administration'. Very neat ;)
Cheers,
Tone
--~--~--
Thanks for the patch ChaosKCW,
I still can't get this to work though,
pa = models.ForeignKey("self", blank=True, null=True,
limit_choices_to = {'groups__exact' : 'Administration'}) # PA for
this person
I'm now getting mesages about an m2m table not existing.
What I'd like to do is some
This patch works:
http://groups.google.com/group/django-developers/browse_thread/thread/e784f1e5fde630ed/b7920dba4b69e455#b7920dba4b69e455
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
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 ha
How can I see SQLs generated from an application. I have read the
previosu topics on this, but they no longer seem to apply to MR branch.
Well I cant find the table with all the queries anyways.
I am trying to use limit_choices_to on a foreignkey and it just doesnt
seem to do anything.
I have a
6 matches
Mail list logo