From 21d8ea4eb3e22d458515b5278c8cd3a15b069799 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 6 May 2022 10:50:46 +0300 Subject: [PATCH] Corrected extract_views_from_urlpatterns()'s docstring. --- django/contrib/admindocs/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/contrib/admindocs/views.py b/django/contrib/admindocs/views.py index 468c69d43f6..1d085410577 100644 --- a/django/contrib/admindocs/views.py +++ b/django/contrib/admindocs/views.py @@ -456,7 +456,8 @@ def extract_views_from_urlpatterns(urlpatterns, base="", namespace=None): """ Return a list of views from a list of urlpatterns. - Each object in the returned list is a two-tuple: (view_func, regex) + Each object in the returned list is a four-tuple: + (view_func, regex, namespace, name) """ views = [] for p in urlpatterns: