This ... [1]
from django.db import connection
connection._rollback()
... solved a problem for me in unit testing when I catch a deliberate
DatabaseError.
Django 1.4
Python 2.7
PostgreSQL 9.1
My question: Is it safe enough to use a method with a leading underscore?
Is there a better method?
Thanks
Mike
[1]
http://stackoverflow.com/questions/7753016/djangopostgres-current-transaction-is-aborted-commands-ignored-until-end-of
--
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.