(request, uid)
return file_serve(request=request, path=path, obj=obj, download=True)
Download a given data object.
Download a given data object.
Download a given data object .
def data_download(request, uid):
    """
    Download a given data object.
    """
    obj = Data.objects.filter(uid=uid).first()
    files = obj.get_files()
    # Get first file in data directory.
    path = files[0]

    return file_serve(request=request, path=path, obj=obj, download=True)
def data_download ( request , uid ) : obj = Data . objects . filter ( uid = uid ) . first ( ) files = obj . get_files ( ) # Get first file in data directory. path = files [ 0 ] return file_serve ( request = request , path = path , obj = obj , download = True )