From 2546803a2fe600466faa9da9c857d3b2e960ca94 Mon Sep 17 00:00:00 2001 From: Valder Gallo Date: Thu, 7 Sep 2017 09:51:17 -0300 Subject: [PATCH 1/6] Update __init__.py --- reset_migrations/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 9bd0e02490c82c88fd683c410787fb34f81c72bc Mon Sep 17 00:00:00 2001 From: Valder Gallo Date: Thu, 7 Sep 2017 10:20:04 -0300 Subject: [PATCH 2/6] fix print for python3 --- reset_migrations/management/commands/reset_migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reset_migrations/management/commands/reset_migrations.py b/reset_migrations/management/commands/reset_migrations.py index f0e819e..f4cc3cc 100644 --- a/reset_migrations/management/commands/reset_migrations.py +++ b/reset_migrations/management/commands/reset_migrations.py @@ -14,7 +14,7 @@ def delete_line(filename, pattern): with open(filename) as src_file: for line in src_file: if pattern_compiled.findall(line): - print_function('Deleting line in %s' % filename) + print('Deleting line in %s' % filename) continue tmp_file.write(line) From be312a68982830be54fadf9b03f35a160c01cad6 Mon Sep 17 00:00:00 2001 From: desertSniper87 Date: Sat, 9 Sep 2017 14:58:43 +0600 Subject: [PATCH 3/6] typo in success --- reset_migrations/management/commands/reset_migrations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reset_migrations/management/commands/reset_migrations.py b/reset_migrations/management/commands/reset_migrations.py index f4cc3cc..a253426 100644 --- a/reset_migrations/management/commands/reset_migrations.py +++ b/reset_migrations/management/commands/reset_migrations.py @@ -74,7 +74,7 @@ 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) From 5d4873a0aa0acbefd8cd46b3e91bf3039e051c66 Mon Sep 17 00:00:00 2001 From: Sandra Saornil Date: Mon, 25 Sep 2017 12:57:28 +0200 Subject: [PATCH 4/6] Do not run makemigrations when `--cached` option is used --- reset_migrations/management/commands/reset_migrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reset_migrations/management/commands/reset_migrations.py b/reset_migrations/management/commands/reset_migrations.py index f4cc3cc..cb4da54 100644 --- a/reset_migrations/management/commands/reset_migrations.py +++ b/reset_migrations/management/commands/reset_migrations.py @@ -76,7 +76,8 @@ def handle(self, *args, **options): self.delete_dependence_app(app) self.stdout.write("APP (%s) deleted with sucess" % app) - call_command('makemigrations', *apps) + if not options['cached']: + call_command('makemigrations', *apps) for app in apps: call_command('migrate', app, '--fake') From d82e3d03cae054a55fa45ebd6d33c46403dc8294 Mon Sep 17 00:00:00 2001 From: Pablo Date: Thu, 28 Sep 2017 16:15:27 -0300 Subject: [PATCH 5/6] fix(reademe): badge image fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a936d64..28cd2bb 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 From 9d849857ef60263a60b0c11f5b9095dce43797a7 Mon Sep 17 00:00:00 2001 From: Valder Gallo Date: Thu, 9 Jan 2020 09:28:27 -0300 Subject: [PATCH 6/6] fix typo --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28cd2bb..6130630 100644 --- a/README.md +++ b/README.md @@ -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', .....