MCPcopy
hub / github.com/django/django / deconstruct

Method deconstruct

django/db/migrations/operations/fields.py:163–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 category = OperationCategory.REMOVAL
162
163 def deconstruct(self):
164 kwargs = {
165 "model_name": self.model_name,
166 "name": self.name,
167 }
168 return (self.__class__.__name__, [], kwargs)
169
170 def state_forwards(self, app_label, state):
171 state.remove_field(app_label, self.model_name_lower, self.name)

Callers 1

test_remove_fieldMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_remove_fieldMethod · 0.76