so check it in template ia a wrong way, becouse this part of code will be slow (django template engine) and not reusable.
You should create some method in a view, and check permission in a view, or, probably, you can create View mixin with this method and use it in any View if you need it. This method should take context of a page and add "has_look_permission" attribute to this context, after you can ise it in template {% if has_look_permission %} bla-bla.
Also check native Django permission Groups it is poverful build-in tool