Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
valdergallo authored Jan 9, 2020
2 parents b00bf3b + cfaf74d commit 22dcaf6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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',
.....
Expand Down
2 changes: 1 addition & 1 deletion reset_migrations/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.0"
__version__ = "0.3.0"
5 changes: 3 additions & 2 deletions reset_migrations/management/commands/reset_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 22dcaf6

Please sign in to comment.