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):
# Redirection view.
def redirection(request, short):
url = URL.objects.get( short = short )
# case insensitive matching
url = URL.objects.get( short__iexact = short )
except URL.DoesNotExist:
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