Modify ↓
Ticket #960 (closed defect: invalid)
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
Note: See
TracTickets for help on using
tickets.

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?