Closed willbarton closed 2 years ago
@mkeener would you be able to test if this fixes your issue?
@willbarton I changed this line in my local and it works as expected, thanks!
Because this is a single line change to bring our code in line with what Django already implements, and because this strikes me as a fairly major bug, I'm going to go ahead and merge this PR.
This change fixes an issue with
flagged_path
whereincludes()
would not be correctly included, and cannot be resolved using their names.The issue was simply with our passing of
is_endpoint
to the pattern class. In the case ofpath()
URLs, the pattern class isRoutePattern
, and it doesn’t double-checkis_endpoint
the wayRegexPattern
does. I have some more details in #100.This is a simple fix to change that incorrect
True
toFalse
.This closes #100.