1
0
mirror of https://github.com/django/django.git synced 2025-02-28 19:44:35 +00:00

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

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. 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 = [] views = []
for p in urlpatterns: for p in urlpatterns: