From 3c6aa487eb14970e0b1f59859bb43d67e2aad65e Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Tue, 5 Jul 2011 15:00:30 +0200 Subject: Added ipad to User Agent regex. --- views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('.') -- cgit v1.1