MCPcopy
hub / github.com/django/django / database_backwards

Method database_backwards

django/db/migrations/operations/models.py:113–116  ·  view source on GitHub ↗
(self, app_label, schema_editor, from_state, to_state)

Source from the content-addressed store, hash-verified

111 )
112
113 def database_backwards(self, app_label, schema_editor, from_state, to_state):
114 model = from_state.apps.get_model(app_label, self.name)
115 if self.allow_migrate_model(schema_editor.connection.alias, model):
116 schema_editor.delete_model(model)
117
118 def describe(self):
119 return "Create %smodel %s" % (

Calls 3

get_modelMethod · 0.45
allow_migrate_modelMethod · 0.45
delete_modelMethod · 0.45