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')