{% load base_tags %} {% load perm_tags %} {% has_perm user site_settings.change_setting as can_edit_setting %} {% has_perm user locations.add_location as can_add_location %} {% if app_object %} {% has_perm user locations.view_location app_object as can_view_location %} {% has_perm user locations.change_location app_object as can_edit_location %} {% has_perm user locations.delete_location app_object as can_delete_location %} {% else %} {% has_perm user locations.view_location as can_view_location %} {% has_perm user locations.change_location as can_edit_location %} {% endif %}