Added support for using permissions in Django templates.