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
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
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
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,
4 matches
Mail list logo