Re: SQL Debugging and limit_choices_to in MR Branch

2006-03-24 Thread ChaosKCW
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

Re: SQL Debugging and limit_choices_to in MR Branch

2006-03-23 Thread tonemcd
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 --~--~--

Re: SQL Debugging and limit_choices_to in MR Branch

2006-03-23 Thread tonemcd
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

Re: SQL Debugging and limit_choices_to in MR Branch

2006-03-22 Thread ChaosKCW
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

Re: SQL Debugging and limit_choices_to in MR Branch

2006-03-21 Thread tonemcd
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

SQL Debugging and limit_choices_to in MR Branch

2006-03-21 Thread ChaosKCW
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