Keep template backwards compatible to Django 1.4
Merge pull request #23 from stefanw/django-1.5

Keep support for Django < 1.5