From f8c85107e8f6e06129aae85c08e64f56e227afd1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 3 Dec 2011 18:03:55 +0100 Subject: [PATCH] even more browser --- pandora/user/models.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pandora/user/models.py b/pandora/user/models.py index 233a09f6..26339c08 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -48,6 +48,8 @@ class SessionData(models.Model): 'Internet Explorer' 'Webkit', 'Safari', + 'MeeGo', + 'Android', 'Chrome', 'Firefox', 'Safari Mobile', @@ -56,10 +58,16 @@ class SessionData(models.Model): if { 'Safari Mobile': 'Mobile/', 'Internet Explorer': 'MSIE', - }.get(browser, browser) in self.useragent: self.browser = browser - for system in ('Windows', 'Mac OS X', 'Andorid', 'iOS', 'Linux'): + for system in ( + 'Windows', + 'Mac OS X', + 'iOS', + 'Linux', + 'Andorid', + 'MeeGo', + ): if { }.get(system, system) in self.useragent: self.system = system