Commit e0abf0b4 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Case insensitive matching.

parent dad9c4e8
...@@ -97,7 +97,8 @@ def signup(request): ...@@ -97,7 +97,8 @@ def signup(request):
# Redirection view. # Redirection view.
def redirection(request, short): def redirection(request, short):
try: try:
url = URL.objects.get( short = short ) # case insensitive matching
url = URL.objects.get( short__iexact = short )
except URL.DoesNotExist: except URL.DoesNotExist:
raise Http404("Target URL not found.") raise Http404("Target URL not found.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment