python - @transaction.commit_manually throws an exception in Django -


we using django 1.4 in our website. have function @transaction.commit_manually decorator, calls function has @transaction.commit_manually decorator. second function exits without error, when exits first function throws transactionmanagementerror exception - transaction managed block ended pending commit/rollback. think because first function didn't commit yet. can avoid exception?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -