Browse files

Changed the reverse() call for creating URLs to convert a "." in the …


pattern to a "." in the final output. This hides what is probably a bug in the
pattern (the user almost certainly should have written "\."), but it will avoid
a large number of "bug" reports about reverse().

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b0b73b3 commit 399abd7fe874e4c85ae50196d099712ff401f11e @malcolmt malcolmt committed Sep 3, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/
@@ -85,7 +85,7 @@ def normalize(pattern):
elif ch == '.':
# Replace "any character" with an arbitrary representative.
- result.append(u"x")
+ result.append(u".")
elif ch == '|':
# FIXME: One day we'll should do this, but not in 1.0.
raise NotImplementedError

0 comments on commit 399abd7

Please sign in to comment.