templates updated to be compatible with django>=1.5

hey, thanks for your project. I've updated it a bit to for compatibility with modern django version.