Modify

Ticket #960 (closed defect: invalid)

Opened 2 years ago

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

Description

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.

Attachments

Change History

comment:1 Changed 2 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 18 months ago by andrew

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

Closing due to inactivity.

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.