def METHOD_NAME(request, obj, filename):
    """Download a photo.
    This function provides a layer of indirection for shared albums.
    """
    photopath = _photo_path(obj, filename)
    photo = get_object_or_404(Photo.objects.filter(album=obj, file=photopath))
    return redirect(get_media_url(photo.file, attachment=f"{obj.slug}-{filename}"))