diff options
author | Johan Lundberg <lundberg@nordu.net> | 2011-07-05 15:00:30 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2011-07-05 15:00:30 +0200 |
commit | 3c6aa487eb14970e0b1f59859bb43d67e2aad65e (patch) | |
tree | 03c6b9c55da3632c205c13f8c61727d8b7f46c65 | |
parent | 9e30fd59be8c47847706f5328e1cccf8ea285265 (diff) |
Added ipad to User Agent regex.
-rw-r--r-- | views.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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('.') |