(self)
| 1104 | ) |
| 1105 | |
| 1106 | def test_remove_indexed_field(self): |
| 1107 | with connection.schema_editor() as editor: |
| 1108 | editor.create_model(AuthorCharFieldWithIndex) |
| 1109 | with connection.schema_editor() as editor: |
| 1110 | editor.remove_field( |
| 1111 | AuthorCharFieldWithIndex, |
| 1112 | AuthorCharFieldWithIndex._meta.get_field("char_field"), |
| 1113 | ) |
| 1114 | columns = self.column_classes(AuthorCharFieldWithIndex) |
| 1115 | self.assertNotIn("char_field", columns) |
| 1116 | |
| 1117 | def test_alter(self): |
| 1118 | """ |
nothing calls this directly
no test coverage detected