Fix templates to work with django 1.5.
Merge pull request #12 from nimbis/master

Fix templates to work with django 1.5.