Skip to content

Commit

Permalink
removed not route.callback (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjkkkjjj committed Aug 9, 2024
1 parent 758a205 commit dd4b1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _parse_resolver(child_url_pattern, parent_resolver, parent_regex, routes):
list[URLPattern]
The URLPattern's list that stores the routes
"""
if not child_url_pattern.callback and isinstance(child_url_pattern, URLResolver):
if isinstance(child_url_pattern, URLResolver):
# parse the urls resolved by django's `include` function
for url_pattern in child_url_pattern.url_patterns:
# call _parse_resolver recurrsively to parse nested URLResolver
Expand Down

0 comments on commit dd4b1aa

Please sign in to comment.