Running Django 1.6.5 (very old i know but can\'t upgrade at the moment since this is production).
I\'m working on a view where I need to perform a query and get data from