diff --git a/README.md b/README.md index a936d64..6130630 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![License](http://img.shields.io/:license-apache-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0.html) -[![PyPI Downloads] (http://img.shields.io/pypi/dm/django-reset-migrations.svg)](https://pypi.python.org/pypi/django-reset-migrations) +[![PyPI Downloads](http://img.shields.io/pypi/dm/django-reset-migrations.svg)](https://pypi.python.org/pypi/django-reset-migrations) # Django reset migrations @@ -31,13 +31,13 @@ I hope be usefull to you 2 :D pip install django-reset-migrations ``` -Install package in your INSTALL_APPS +Install package in your INSTALLED_APPS ``` settings.py -INSTALL_APPS = ( +INSTALLED_APPS = ( ... 'reset_migrations', ..... diff --git a/reset_migrations/__init__.py b/reset_migrations/__init__.py index d3ec452..493f741 100644 --- a/reset_migrations/__init__.py +++ b/reset_migrations/__init__.py @@ -1 +1 @@ -__version__ = "0.2.0" +__version__ = "0.3.0" diff --git a/reset_migrations/management/commands/reset_migrations.py b/reset_migrations/management/commands/reset_migrations.py index 330c58a..b7b357d 100644 --- a/reset_migrations/management/commands/reset_migrations.py +++ b/reset_migrations/management/commands/reset_migrations.py @@ -72,9 +72,10 @@ def handle(self, *args, **options): if not options['cached']: self.delete_files_app(app) self.delete_dependence_app(app) - self.stdout.write("APP (%s) deleted with sucess" % app) + self.stdout.write("APP (%s) deleted with success" % app) - call_command('makemigrations', *apps) + if not options['cached']: + call_command('makemigrations', *apps) for app in apps: call_command('migrate', app, '--fake')