Hello
I'm trying to use Django's ORM in my non-HTTP part of project.
In one function I need to make bulk inserts of data, so commit_on_success decorator is what I need.
But I've found that this decorator doesn't do what supposed (didn't rollback transaction on error).
I've go into this decorator with debugger, I've fount thar reason is in this code:
if is_dirty():
rollback()
Is dirty allways return true, so Django thought that transaction is allways clean.
And I'm geting "InternalError: current transaction is aborted, commands ignored until end of transaction block"
What can I do with this issue?