From 86660409b91b465a5aa596eb52103beccd919ab5 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Apr 2016 19:34:55 +0200 Subject: [PATCH] commit_unless_managed/commit --- tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index c183795..75e7202 100644 --- a/tasks.py +++ b/tasks.py @@ -36,7 +36,7 @@ def update_double_imdb(): item.models.Item.objects.filter(sort__imdbId=i.sort.imdbId).count() == 1: l.remove(i) - transaction.commit_unless_managed() + transaction.commit() def update_keywords(): t = text.models.Text.get('j:Keywords') @@ -66,4 +66,4 @@ def update_queued(): for i in l.items.all(): if not i.files.filter(encoding=True).exists(): l.remove(i) - transaction.commit_unless_managed() + transaction.commit()