Ticket #960 (closed defect: invalid)

Opened 4 years ago

Last modified 3 years 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. ./manage.py 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/000X_auto__add_userfullname.py", 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 4 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 3 years ago by andrew

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

Closing due to inactivity.

Note: See TracTickets for help on using tickets.