fix_unreads: Remove commit() call in fix().

The commit() call in fix() breaks migrations and tests (unless you
mock) due to outer transactions.

We now explicitly call commit() from the management command.
This commit is contained in:
Steve Howell
2017-09-03 11:24:56 -07:00
committed by showell
parent 638675cd7e
commit 69203c1c81
3 changed files with 4 additions and 3 deletions

View File

@@ -248,4 +248,3 @@ def fix(user_profile):
with connection.cursor() as cursor:
fix_unsubscribed(cursor, user_profile)
fix_pre_pointer(cursor, user_profile)
connection.commit()