eef8f315789cfcbcf3fb460f39de8f0262d5a2b5
[wolnelektury.git] / apps / south / management / commands / test.py
1 from django.core import management
2 from django.core.management.commands import test
3 from django.core.management.commands import syncdb
4
5 class Command(test.Command):
6     
7     def handle(self, *args, **kwargs):
8         # point at the core syncdb command when creating tests
9         # tests should always be up to date with the most recent model structure
10         management.get_commands()
11         management._commands['syncdb'] = 'django.core'
12         super(Command, self).handle(*args, **kwargs)