Template Django 1.5 Compatible

Make the Template Django 1.5 Compatible