migrate: disable if django 1.7 (#6388)

This commit is contained in:
Thomas NOËL 2015-02-05 15:50:23 +01:00
parent eaac238e1b
commit c298e1d4e7
1 changed files with 8 additions and 4 deletions

View File

@ -3,13 +3,17 @@
# Email: carneiro.be@gmail.com
# License: MIT license
# Home-page: http://github.com/bcarneiro/django-tenant-schemas
import django
from django.conf import settings
from django.core.management.base import CommandError, BaseCommand
try:
from south.management.commands.migrate import Command as MigrateCommand
except ImportError:
MigrateCommand = BaseCommand
if django.VERSION < (1, 7, 0):
try:
from south.management.commands.migrate import Command as MigrateCommand
except ImportError:
MigrateCommand = BaseCommand
else:
MigrateCommand = BaseCommand
class Command(MigrateCommand):