Commit fd428daa authored by Michal Čihař's avatar Michal Čihař

Django 1.7 compatibility

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2ba00e8c
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
# #
from django.core.management.base import BaseCommand, CommandError from django.core.management.base import BaseCommand, CommandError
from django.utils.encoding import force_unicode
from django.db.models import Q from django.db.models import Q
from django.utils.text import slugify from django.utils.text import slugify
from weblate.trans.models import SubProject, Project from weblate.trans.models import SubProject, Project
...@@ -325,7 +326,7 @@ class Command(BaseCommand): ...@@ -325,7 +326,7 @@ class Command(BaseCommand):
raise CommandError( raise CommandError(
'Specified --main-component was not found in matches!' 'Specified --main-component was not found in matches!'
) )
match = self.main_component match = force_unicode(self.main_component)
matches.remove(self.main_component) matches.remove(self.main_component)
else: else:
match = matches.pop() match = matches.pop()
......
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