I'm getting duplicate entry integrity errors when saving an object, with
transaction middleware enabled in django 1.3.

I thought the point of the middleware was to rollback transaction errors
and retry the view. Why would I be getting this error?

The db is mysql. The save code looks like this:

try:
    gs = request.user.usergeneset_set.get(name=name)
    gs.genelist = members
except ObjectDoesNotExist:
    gs = UserGeneset(user=request.user, name=name, genelist=members)
gs.save()

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to