(self, app_label, schema_editor, from_state, to_state)
| 394 | state.remove_model(app_label, self.name_lower) |
| 395 | |
| 396 | def database_forwards(self, app_label, schema_editor, from_state, to_state): |
| 397 | model = from_state.apps.get_model(app_label, self.name) |
| 398 | if self.allow_migrate_model(schema_editor.connection.alias, model): |
| 399 | schema_editor.delete_model(model) |
| 400 | |
| 401 | def database_backwards(self, app_label, schema_editor, from_state, to_state): |
| 402 | model = to_state.apps.get_model(app_label, self.name) |