Hi,
I modified django's db/backends/postgresq_psycopg2/base.py and fixed
the problem.I added this lines before "cursor = self.connection.cursor
()":

    # if transaction is broken, run rollback method
    if self.connection.get_transaction_status()==3:
    self.connection.rollback()
    #

I hope it will be useful for you too.Also, I've written a blog post
about this;
http://berraksular.blogspot.com/2009/02/transaction-problem-of-django-and.html

regards
azer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to