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):
>
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
2 matches
Mail list logo