Changes between Initial Version and Version 1 of Ticket #25818
- Timestamp:
- Nov 26, 2015, 7:34:49 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25818 – Description
initial v1 3 3 {{{#!python 4 4 operations = [ 5 migrations.RenameField( 6 model_name='bar', 7 old_name='bar_id', 8 new_name='external_id', 9 ), 5 10 migrations.RunSQL( 6 ' ALTER TABLE form_processor_bar RENAME COLUMN bar_id TO external_id',7 ' ALTER TABLE form_processor_bar RENAME COLUMN external_id TO bar_id',11 'SELECT 1', 12 'SELECT 1', 8 13 state_operations=[ 9 migrations.RenameField(10 model_name='bar',11 old_name='bar_id',12 new_name='external_id',13 ),14 14 migrations.AlterField( 15 15 model_name='bazz', … … 57 57 }}} 58 58 59 On further examination it seems that the 'path' to the operation is being passed in without the module reference i.e. ' RenameField' instead of 'migrations.RenameField'. It's also possible that something else is going wrong since all the other paths being passed to 'serialize_deconstructed' are for actual field classes e.g. 'django.db.models.CharField'.59 On further examination it seems that the 'path' to the operation is being passed in without the module reference i.e. 'AlterField' instead of 'migrations.AlterField'. It's also possible that something else is going wrong since all the other paths being passed to 'serialize_deconstructed' are for actual field classes e.g. 'django.db.models.CharField'.