Update django.plugin.zsh
Added basic south commands
This commit is contained in:
parent
3913106b2e
commit
0cb2b66be6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user