Ticket #440 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

No way to turn off interactivity on migrate (or syncdb --migrate)

Reported by: carl@… Owned by: andrew
Priority: blocker Milestone: 0.7.1
Component: commands Version: 0.7
Keywords: Cc:


Django's post_syncdb signal takes an "interactive" kwarg which listeners use to decide whether or not to display interactive prompts. Currently South's migrate and syncdb commands do not accept any options to set this kwarg; instead it is always set to True (http://south.aeracode.org/browser/south/db/generic.py#L804).

This is a blocker issue for automated deployments with Django 1.2 and South, since contrib.contenttypes in Django 1.2 includes an interactive prompt for removing stale contenttypes post_syncdb.

Change History

comment:1 Changed 6 years ago by carl@…

This commit fixes this:


I haven't added a test for this yet, as there aren't existing tests for command-line options (such as verbosity). If you want a test before merging, I can work on that...

comment:2 Changed 6 years ago by andrew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 0.7.1

Merged, thanks. I'm not sure I can really write a test framework for this yet; it'll have to make do with a few manual tests.

Note: See TracTickets for help on using tickets.