@treeio_login_required
@handle_response_format
def user_perspective(request, response_format='html'):

    user = request.user.profile
    if request.POST and 'core_perspective' in request.POST:
        id = request.POST['core_perspective']
        perspective = get_object_or_404(Perspective, pk=id)
        if user.has_permission(perspective):
            user.set_perspective(perspective)

    return HttpResponseRedirect(reverse('home'))
self.drivers should override this method to perform required setup
dataset/ETHPy150Open treeio/treeio/treeio/core/views.py/user_perspective--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/dbapi20.py/DatabaseAPI20Test.setUp