summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2011-07-05 15:00:30 +0200
committerJohan Lundberg <lundberg@nordu.net>2011-07-05 15:00:30 +0200
commit3c6aa487eb14970e0b1f59859bb43d67e2aad65e (patch)
tree03c6b9c55da3632c205c13f8c61727d8b7f46c65
parent9e30fd59be8c47847706f5328e1cccf8ea285265 (diff)
Added ipad to User Agent regex.
-rw-r--r--views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/views.py b/views.py
index 0d9b56a..ba09989 100644
--- a/views.py
+++ b/views.py
@@ -71,7 +71,7 @@ def _select_template(request, s):
the suffix if the request comes from a mobile device.
'changepw/change_password.html' -> 'changepw/change_password_m.html'
'''
- p = re.compile('(iphone|ipod|blackberry|android|palm|windows\s+ce)',
+ p = re.compile('(iphone|ipod|ipad|blackberry|android|palm|windows\s+ce)',
re.IGNORECASE)
if p.search(request.META['HTTP_USER_AGENT']):
parts = s.split('.')