From dd4b1aa822eed6816151641a3f4410c3141e8e77 Mon Sep 17 00:00:00 2001 From: jjjkkkjjj Date: Sat, 10 Aug 2024 00:48:53 +0900 Subject: [PATCH] removed not route.callback (#2110) --- channels/routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/routing.py b/channels/routing.py index b64c0529..5918de0d 100644 --- a/channels/routing.py +++ b/channels/routing.py @@ -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