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

Method deconstruct

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

Source from the content-addressed store, hash-verified

214 super().__init__(model_name, name, field)
215
216 def deconstruct(self):
217 kwargs = {
218 "model_name": self.model_name,
219 "name": self.name,
220 "field": self.field,
221 }
222 if self.preserve_default is not True:
223 kwargs["preserve_default"] = self.preserve_default
224 return (self.__class__.__name__, [], kwargs)
225
226 def state_forwards(self, app_label, state):
227 state.alter_field(

Callers 2

test_alter_fieldMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_alter_fieldMethod · 0.76