stephane/django-sorting — pull request #2 by dlancer (2013-07-19 07:12:58+00:00)
Title: Prevent not allowed sort directions

sortdir should be verified, because if sortdir have wrong value (i.e. from malicious request), KeyError raised.