Re: Problems with generic.GenericForeignKey()

2008-05-17 Thread Josh
Ah, I see. Thanks, I'll give that a shot. On Mar 28, 6:52 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Mar 28, 9:16 pm, Josh <[EMAIL PROTECTED]> wrote: > > > I've determined that the problem is with the get(). If I just create > > the objects without first checking to see if it already exis

Re: Problems with generic.GenericForeignKey()

2008-03-28 Thread Daniel Roseman
On Mar 28, 9:16 pm, Josh <[EMAIL PROTECTED]> wrote: > I've determined that the problem is with the get(). If I just create > the objects without first checking to see if it already exists, > there's no problem. > > So I guess my question is now this: what's the best way to avoid > duplicates here?

Re: Problems with generic.GenericForeignKey()

2008-03-28 Thread Josh
I've determined that the problem is with the get(). If I just create the objects without first checking to see if it already exists, there's no problem. So I guess my question is now this: what's the best way to avoid duplicates here? --~--~-~--~~~---~--~~ You rece

Problems with generic.GenericForeignKey()

2008-03-28 Thread Josh
I've defined a model using a generic foreign key which is basically exactly like the tagging example provided in the Django docs: from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic class WordedItem(models.Model)