diff --git a/plugins/django/django.plugin.zsh b/plugins/django/django.plugin.zsh index 9d898edc..ae2a1d4f 100644 --- a/plugins/django/django.plugin.zsh +++ b/plugins/django/django.plugin.zsh @@ -170,6 +170,22 @@ _managepy-validate() { $nul_args && ret=0 } +#south migrations +_managepy-schemamigration(){ + _arguments -s : \ + '--initial' \ + '--auto' \ + '*::appname:_applist' \ + $nul_args && ret=0 + +} +_managepy-migrate(){ + _arguments -s : \ + '*::appname:_applist' \ + $nul_args && ret=0 + +} + _managepy-commands() { local -a commands @@ -202,6 +218,9 @@ _managepy-commands() { 'test:Runs the test suite for the specified applications, or the entire site if no apps are specified.' 'testserver:Runs a development server with data from the given fixture(s).' 'validate:Validates all installed models.' + 'schemamigration: South migrations preparation' + 'migrate: South migration for specific app' + ) _describe -t commands 'manage.py command' commands && ret=0