@check_local_site_access
def user_file_attachment(request, file_attachment_uuid, username, local_site=None):
 file_attachment = get_object_or_404(FileAttachment, uuid=file_attachment_uuid, user__username=username, local_site=local_site, file__isnull=False)
 return redirect(file_attachment)

@ check_local_site_access def user_file_attachment ( request , file_attachment_uuid , username , local_site = None ) : file_attachment = get_object_or_404 ( FileAttachment , uuid = file_attachment_uuid , user__username = username , local_site = local_site , file__isnull = False ) return redirect ( file_attachment )
redirect to the file attachments url given its uuid .