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

Method database_backwards

django/db/migrations/operations/fields.py:247–248  ·  view source on GitHub ↗
(self, app_label, schema_editor, from_state, to_state)

Source from the content-addressed store, hash-verified

245 to_field.default = NOT_PROVIDED
246
247 def database_backwards(self, app_label, schema_editor, from_state, to_state):
248 self.database_forwards(app_label, schema_editor, from_state, to_state)
249
250 def describe(self):
251 return "Alter field %s on %s" % (self.name, self.model_name)

Calls 1

database_forwardsMethod · 0.95