Re: limit_choices_to Users in a Group

2006-08-22 Thread Waylan Limberg
On 8/21/06, Corey Oordt <[EMAIL PROTECTED]> wrote: > > I think you need to include django.core.exceptions > > And I think that the exception is ObjectDoesNotExist > That did the trick. Thanks. -- Waylan Limberg [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You rec

Re: limit_choices_to Users in a Group

2006-08-21 Thread Corey Oordt
I think you need to include django.core.exceptions And I think that the exception is ObjectDoesNotExist Corey On Aug 21, 2006, at 4:24 PM, Waylan Limberg wrote: > > I figured this out, thanks to a suggestion in another thread. It seems > I was misunderstanding something about how limit_choice

Re: limit_choices_to Users in a Group

2006-08-21 Thread Waylan Limberg
I figured this out, thanks to a suggestion in another thread. It seems I was misunderstanding something about how limit_choices_to works. Anyway, the following works: from django.contrib.auth.models import User, Group class Project(models.Model): coordinator = models.ForeignKey( User

limit_choices_to Users in a Group

2006-08-16 Thread Waylan Limberg
I'm not sure if my problem is related to this thread[1] or if I'm just misunderstanding something with regard to limit_choices_to. First I tried this (in relevant part): from django.contrib.auth.models import User class Project(models.Model): coordinator = models.ForeignKey( User,