{% load base_filters %} {% load base_tags %} {% load chapter_tags %} {% load perm_tags %} {% load tagging_tags %} {% has_perm user chapters.change_chapter chapter as can_edit %} {% has_perm user chapters.delete_chapter chapter as can_delete %} {% has_perm user chapters.add_chapter as can_add %} {% tags_for_object chapter as tags %} {% if user.is_authenticated %}