MCPcopy
hub / github.com/django/django / get_view_name

Function get_view_name

django/contrib/admindocs/utils.py:23–29  ·  view source on GitHub ↗
(view_func)

Source from the content-addressed store, hash-verified

21
22
23def get_view_name(view_func):
24 if hasattr(view_func, "view_class"):
25 klass = view_func.view_class
26 return f"{klass.__module__}.{klass.__qualname__}"
27 mod_name = view_func.__module__
28 view_name = getattr(view_func, "__qualname__", view_func.__class__.__name__)
29 return mod_name + "." + view_name
30
31
32def parse_docstring(docstring):

Callers 2

process_viewMethod · 0.85
get_context_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected