Skip to content

Commit 03ec91e

Browse files
committed
add fake info to success rollback message
1 parent 558add4 commit 03ec91e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django_rollback/management/commands/rollback_migrations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def handle(self, *args, **options):
8686
if not options['fake']:
8787
self.make_the_last_state_for_commit(other_commit)
8888

89-
self.stdout.write(self.style.SUCCESS('Rollback successfully finished.'))
89+
fake_msg = f' with `--fake` option' if options['fake'] else ''
90+
self.stdout.write(self.style.SUCCESS(f'Rollback successfully finished{fake_msg}.'))
9091

9192
def get_other_commit(self, options, path):
9293
commit_arg = options['commit']

0 commit comments

Comments
 (0)