diff options
-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('.') |