Modify ↓
Ticket #440 (closed defect: fixed)
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: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

This commit fixes this:
http://bitbucket.org/carljm/south/changeset/fe7d4474ee23
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...