Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PyDev in Eclipse does not recognize db.add_column from South
- find . | grep '^./[a-z]*/migrations/.*.py$' | xargs -I FILE sed -i '
- 1 a
- #@PydevCodeAnalysisIgnore
- ' FILE
- Preferences > PyDev > Editor > Code Analysis > Undefined
- _,tr,create_table,send_create_signal,delete_table,add_column,delete_column,alter_column,create_unique,create_index,delete_index
- --- db/__init__.py.original 2010-12-02 03:00:26.000000000 +1300
- +++ db/__init__.py 2011-05-02 14:07:19.353636710 +1200
- @@ -72,5 +72,9 @@
- )
- sys.exit(1)
- -# Finally, to make old migrations work, keep 'db' around as the default database
- +# Finally, to make old migrations work, keep 'db' around as the default
- +# database. We're setting it explicitly to the generic operations first to
- +# avoid pydev errors.
- +from south.db import generic
- +db = generic.DatabaseOperations(DEFAULT_DB_ALIAS)
- db = dbs[DEFAULT_DB_ALIAS]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement