Override for a django bug with "View on site"

This not so pretty hack corrects the bug in the version of django we use, so 'View on Site' is correctly displayed.