Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: cf295577f8
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (17 sloc) 0.667 kB
#!/usr/bin/env python
import sys
import os
from optparse import OptionParser
import tests.config
def create_migration(app_label, **kwargs):
from south.management.commands.schemamigration import Command
com = Command()
com.handle(app=app_label, **kwargs)
if __name__ == '__main__':
parser = OptionParser()
parser.add_option('-i', '--initial', dest='initial',
action='store_true', default=False)
parser.add_option('-a', '--auto', dest='auto',
action='store_true', default=False)
(options, args) = parser.parse_args()
create_migration(args[0], initial=options.initial, auto=options.auto)
Jump to Line
Something went wrong with that request. Please try again.