Skip to content

Commit fccdce9

Browse files
authored
Another bug
3 and counting...
1 parent 5e238b8 commit fccdce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework_docs/api_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, drf_router=None):
2121
else:
2222
self.get_all_view_names(root_urlconf.urlpatterns)
2323

24-
def get_all_view_names(self, urlpatterns, parent_regex=None):
24+
def get_all_view_names(self, urlpatterns, parent_regex=''):
2525
for pattern in urlpatterns:
2626
if isinstance(pattern, RegexURLResolver):
2727
regex = '' if pattern._regex == "^" else pattern._regex

0 commit comments

Comments
 (0)