Capomastro uses transaction.commit_unless_managed which is a no-op and will be removed in django 1.8

Bug #1414191 reported by Daniel Manrique
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

When running tox tests for capomastro on django 1.7 I get:

Creating test database for alias 'default'...
.../capomastro/credentials/management/commands/ RemovedInDjango18Warning: 'commit_unless_managed' is now a no-op.

the tests pass, but when I let the requirements.txt file install the latest matching django version (1.8a1 at the moment), the removal has taken effect and I get a test failure:

ERROR: test_run_command_with_key_import (
Traceback (most recent call last):
  File "/capomastro/credentials/management/commands/tests/", line 39, in test_run_command_with_key_import
  File "/capomastro/.tox/py27/local/lib/python2.7/site-packages/django/core/management/", line 441, in execute
    output = self.handle(*args, **options)
  File "/capomastro/credentials/management/commands/", line 29, in handle
AttributeError: 'module' object has no attribute 'commit_unless_managed'

Removing the call to transaction.commit_unless_managed() from credentials/management/commands/ seems to fix this issue.

Related branches

Daniel Manrique (roadmr)
Changed in capomastro:
status: New → Triaged
importance: Undecided → High
Daniel Manrique (roadmr)
Changed in capomastro:
milestone: none → 2015-04
Daniel Manrique (roadmr)
Changed in capomastro:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.