{% load base_tags %} {% load perm_tags %} {% load i18n %} {% has_perm user locations.change_location opt_object as can_edit %} {% has_perm user locations.delete_location opt_object as can_delete %} {% if can_edit %}