MCPcopy
hub / github.com/django/django / __getitem__

Method __getitem__

django/contrib/admin/options.py:121–128  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

119
120 # RemovedInDjango70Warning.
121 def __getitem__(self, index):
122 warnings.warn(
123 "Using indexes on an action tuple is deprecated. "
124 "Use Action attributes instead.",
125 RemovedInDjango70Warning,
126 skip_file_prefixes=django_file_prefixes(),
127 )
128 return self._as_tuple()[index]
129
130
131HORIZONTAL, VERTICAL = 1, 2

Callers

nothing calls this directly

Calls 2

_as_tupleMethod · 0.95
django_file_prefixesFunction · 0.90

Tested by

no test coverage detected