From 0cb2b66be6d10fa63823b2fc3110e05b8dcf0db6 Mon Sep 17 00:00:00 2001 From: Alonisser Date: Fri, 16 May 2014 22:20:16 +0300 Subject: [PATCH] Update django.plugin.zsh Added basic south commands --- plugins/django/django.plugin.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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