Commit 47b082ea authored by Michal Čihař's avatar Michal Čihař

Remove transaction handling from the command

It's now done at lower level with finer granularity.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 5e9fe5bf
......@@ -20,7 +20,6 @@
from weblate.trans.management.commands import WeblateLangCommand
from optparse import make_option
from django.db import transaction
class Command(WeblateLangCommand):
......@@ -40,5 +39,4 @@ class Command(WeblateLangCommand):
if options['lang'] is not None:
langs = options['lang'].split(',')
for subproject in self.get_subprojects(*args, **options):
with transaction.atomic():
subproject.create_translations(options['force'], langs)
subproject.create_translations(options['force'], langs)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment