Change template tags for Django v1.5 compatibility