Updated view.py to support older versions of Django

from before the switch to custom user models. Now mirrors: https://github.com/burke-software/django-report-builder/blob/master/report_builder/tests.py#L9-L13

fix for https://github.com/burke-software/django-report-builder/issues/111
Merge pull request #112 from fyaconiello/master

Updated view.py to support older versions of Django