Skip to content

Commit

Permalink
Merge pull request #10 from agroptima/master
Browse files Browse the repository at this point in the history
Do not run makemigrations  when `--cached` option is used
  • Loading branch information
valdergallo committed Jan 9, 2020
2 parents 9d84985 + 5d4873a commit 369b953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reset_migrations/management/commands/reset_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit 369b953

Please sign in to comment.