Re: get_or_create failuire

2010-10-13 Thread spacelab
not sure what you are doing wrong but I get the same error using Django 1.2.3 with mysql. Sorry if that is not helpful. On Sep 28, 6:48 am, Szymon wrote: > Hi, > > Problem: sometimes (not always) get_or_create is trying to create > duplicated record. > > Model: > > class online(models.Model): >

get_or_create failuire

2010-09-28 Thread Szymon
Hi, Problem: sometimes (not always) get_or_create is trying to create duplicated record. Model: class online(models.Model): postac = models.OneToOneField('postac.postacie', related_name="lista_online") data = models.DateTimeField() Code snippet: o = online.objects.filter(postac__user