MCPcopy
hub / github.com/django/django / formatted_description

Method formatted_description

django/db/migrations/operations/base.py:112–117  ·  view source on GitHub ↗

Output a description prefixed by a category symbol.

(self)

Source from the content-addressed store, hash-verified

110 return "%s: %s" % (self.__class__.__name__, self._constructor_args)
111
112 def formatted_description(self):
113 """Output a description prefixed by a category symbol."""
114 description = self.describe()
115 if self.category is None:
116 return f"{OperationCategory.MIXED} {description}"
117 return f"{self.category} {description}"
118
119 @property
120 def migration_name_fragment(self):

Callers 15

write_migration_filesMethod · 0.80
handle_mergeMethod · 0.80
test_create_modelMethod · 0.80
test_delete_modelMethod · 0.80
test_rename_modelMethod · 0.80
test_add_fieldMethod · 0.80
test_remove_fieldMethod · 0.80
test_alter_fieldMethod · 0.80
test_rename_fieldMethod · 0.80

Calls 1

describeMethod · 0.95

Tested by 15

test_create_modelMethod · 0.64
test_delete_modelMethod · 0.64
test_rename_modelMethod · 0.64
test_add_fieldMethod · 0.64
test_remove_fieldMethod · 0.64
test_alter_fieldMethod · 0.64
test_rename_fieldMethod · 0.64
test_add_indexMethod · 0.64