Remove redundant template code.
Still need to support Django 1.4.