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

Method state_forwards

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

Source from the content-addressed store, hash-verified

898 self.index = index
899
900 def state_forwards(self, app_label, state):
901 state.add_index(app_label, self.model_name_lower, self.index)
902
903 def database_forwards(self, app_label, schema_editor, from_state, to_state):
904 model = to_state.apps.get_model(app_label, self.model_name)

Callers 3

test_add_indexMethod · 0.95
test_add_func_indexMethod · 0.95

Calls 1

add_indexMethod · 0.45

Tested by 3

test_add_indexMethod · 0.76
test_add_func_indexMethod · 0.76