Ticket #960 (closed defect: invalid)

Opened 3 years ago

Last modified 21 months ago

Error in proxy model migration script

Reported by: benjaoming@… Owned by: andrew
Priority: major Milestone: 1.0
Component: commands Version: 0.7.3
Keywords: Cc:


Adding a proxy table for the User model. ./ schemamigration appname then created the following wrong migration script:

        db.create_table('auth_user', (

...which I had to comment out. After that, everything worked fine. Am using South 0.7.3.

The above contains a syntax error!

  File "project/appname/migrations/", line 13
SyntaxError: invalid syntax

My procedure was to simply add a new proxy model and reference it to another model with a ForeignKey? field.


Change History

comment:1 Changed 3 years ago by andrew

  • Status changed from new to infoneeded
  • Milestone set to 1.0

Can you replicate the version using the development version of South (pip install South==dev)? And could you provide us with the model that generated this, and its parent?

comment:2 Changed 21 months ago by andrew

  • Status changed from infoneeded to closed
  • Resolution set to invalid

Closing due to inactivity.


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.