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

Method deconstruct

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

Source from the content-addressed store, hash-verified

90 super().__init__(model_name, name, field)
91
92 def deconstruct(self):
93 kwargs = {
94 "model_name": self.model_name,
95 "name": self.name,
96 "field": self.field,
97 }
98 if self.preserve_default is not True:
99 kwargs["preserve_default"] = self.preserve_default
100 return (self.__class__.__name__, [], kwargs)
101
102 def state_forwards(self, app_label, state):
103 state.add_field(

Calls

no outgoing calls