even more browser

This commit is contained in:
j 2011-12-03 18:03:55 +01:00
parent a57be2614c
commit f8c85107e8

View file

@ -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