put is_mobile and is_tablet in the result of user_agent()
This commit is contained in:
@@ -678,6 +678,9 @@ def simple_detect(agent):
|
||||
class mobilize(object):
|
||||
"""
|
||||
Decorator for controller functions so they use different views for mobile devices.
|
||||
|
||||
WARNING: If you update httpagentparser make sure to leave mobilize for
|
||||
backwards compatibility.
|
||||
"""
|
||||
def __init__(self, func):
|
||||
self.func = func
|
||||
|
||||
Reference in New Issue
Block a user