MCPcopy
hub / github.com/django/django / _get_action_description

Method _get_action_description

django/contrib/admin/options.py:1073–1077  ·  view source on GitHub ↗
(func, name)

Source from the content-addressed store, hash-verified

1071
1072 @staticmethod
1073 def _get_action_description(func, name):
1074 try:
1075 return func.short_description
1076 except AttributeError:
1077 return capfirst(name.replace("_", " "))
1078
1079 def _get_base_actions(self, action_location=ActionLocation.CHANGE_LIST):
1080 """Return the list of actions, prior to any request-based filtering."""

Callers 2

_get_base_actionsMethod · 0.95
get_actionMethod · 0.95

Calls 1

capfirstFunction · 0.90

Tested by

no test coverage detected