Fixes #9. Problem with select_related in templates when using regroup filter