Skip to content

Commit

Permalink
Removed superfluous can_import_settings check. The option has been re…
Browse files Browse the repository at this point in the history
…moved in Django 1.11.
  • Loading branch information
deschler committed Feb 22, 2017
1 parent 1b52902 commit 85e26e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modeltranslation/management/commands/loaddata.py
Expand Up @@ -49,7 +49,7 @@ def __init__(self):
self.locale = translation.get_language()

def handle(self, *fixture_labels, **options):
if self.can_import_settings and hasattr(self, 'locale'):
if hasattr(self, 'locale'):
from django.utils import translation
translation.activate(self.locale)

Expand Down

0 comments on commit 85e26e3

Please sign in to comment.