Update django.plugin.zsh

Added basic south commands
This commit is contained in:
Alonisser 2014-05-16 22:20:16 +03:00
parent 3913106b2e
commit 0cb2b66be6

View File

@ -170,6 +170,22 @@ _managepy-validate() {
$nul_args && ret=0 $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() { _managepy-commands() {
local -a 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.' '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).' 'testserver:Runs a development server with data from the given fixture(s).'
'validate:Validates all installed models.' 'validate:Validates all installed models.'
'schemamigration: South migrations preparation'
'migrate: South migration for specific app'
) )
_describe -t commands 'manage.py command' commands && ret=0 _describe -t commands 'manage.py command' commands && ret=0