Modify

Ticket #440 (closed defect: fixed)

Opened 4 years ago

Last modified 3 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:

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

comment:1 Changed 4 years ago by carl@…

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...

comment:2 Changed 4 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.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.