| 5 | | I don't know why this actual error was hidden and the content_type.name error was shown, but the cause was some manual editing on a migrations file. |
| | 6 | |
| | 7 | class Migration(migrations.Migration): |
| | 8 | |
| | 9 | def __init__(self, name, app_label): |
| | 10 | # overriding application operated upon |
| | 11 | super(Migration, self).__init__(name, TARGET_APP) |
| | 12 | |
| | 13 | replaces = ( |
| | 14 | (TARGET_APP, '0001_initial'),) |
| | 15 | |
| | 16 | dependencies = [ |
| | 17 | ('contenttypes', '0001_initial'), |
| | 18 | ] |
| | 19 | }}} |
| | 20 | |
| | 21 | To migrate the Permission model and include permission names for other languages |
| | 22 | When I replaced this with: |
| | 23 | |
| | 24 | {{{ |
| | 25 | TARGET_APP = 'auth' |
| | 26 | |
| | 27 | |
| | 28 | class Migration(migrations.Migration): |
| | 29 | |
| | 30 | def __init__(self, name, app_label): |
| | 31 | # overriding application operated upon |
| | 32 | super(Migration, self).__init__(name, TARGET_APP) |
| | 33 | |
| | 34 | replaces = ( |
| | 35 | (TARGET_APP, '0001_initial'),) |
| | 36 | |
| | 37 | dependencies = [ |
| | 38 | ('contenttypes', '0002_remove_content_type_name'), |
| | 39 | ] |
| | 40 | }}} |
| | 41 | |
| | 42 | It worked again. |
| | 43 | |
| | 44 | |