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

Method deconstruct

django/db/migrations/operations/models.py:437–442  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

435 return self.new_name.lower()
436
437 def deconstruct(self):
438 kwargs = {
439 "old_name": self.old_name,
440 "new_name": self.new_name,
441 }
442 return (self.__class__.__qualname__, [], kwargs)
443
444 def state_forwards(self, app_label, state):
445 state.rename_model(app_label, self.old_name, self.new_name)

Callers 1

test_rename_modelMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_rename_modelMethod · 0.76