def get_direction(self):
    try:
        return self.REQUEST['dir']
    except (KeyError, ValueError, __HOLE__):
        return 'desc'
dataset/ETHPy150Open directeur/django-sorting/django_sorting/middleware.py/get_direction