MCPcopy
hub / github.com/django/django / state_forwards

Method state_forwards

django/db/migrations/operations/models.py:393–394  ·  view source on GitHub ↗
(self, app_label, state)

Source from the content-addressed store, hash-verified

391 return (self.__class__.__qualname__, [], kwargs)
392
393 def state_forwards(self, app_label, 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)

Callers 4

test_delete_modelMethod · 0.95
test_delete_mti_modelMethod · 0.95
test_remove_relationsMethod · 0.95

Calls 1

remove_modelMethod · 0.80

Tested by 4

test_delete_modelMethod · 0.76
test_delete_mti_modelMethod · 0.76
test_remove_relationsMethod · 0.76