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

Method state_forwards

django/db/migrations/operations/fields.py:226–233  ·  view source on GitHub ↗
(self, app_label, state)

Source from the content-addressed store, hash-verified

224 return (self.__class__.__name__, [], kwargs)
225
226 def state_forwards(self, app_label, state):
227 state.alter_field(
228 app_label,
229 self.model_name_lower,
230 self.name,
231 self.field,
232 self.preserve_default,
233 )
234
235 def database_forwards(self, app_label, schema_editor, from_state, to_state):
236 to_model = to_state.apps.get_model(app_label, self.model_name)

Calls 1

alter_fieldMethod · 0.45