django-smartagent icon indicating copy to clipboard operation
django-smartagent copied to clipboard

'ismobiledevice' return 'false', not False

Open ksamuel opened this issue 13 years ago • 0 comments

if request.browser_info['ismobiledevice']:
    do something

Will not behave as expected because it contains the string 'false', not the boolean False. If it's done for performance reasons, it should at least be mention in the doc.

ksamuel avatar May 26 '11 15:05 ksamuel