Template for range filter
From http://djangosnippets.org/snippets/1357/