Corrected extract_views_from_urlpatterns()'s docstring.

This commit is contained in:
Nikita Sobolev 2022-05-06 10:50:46 +03:00 committed by GitHub
parent dddc8bc47d
commit 21d8ea4eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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: