{% load base_tags %} {% load perm_tags %} {% has_perm user photos.view_image as can_view %} {% has_perm user photos.add_image as can_add %} {% has_perm user photos.change_image as can_change %} {% has_perm user photos.delete_image as can_delete %}