Beispiel #1
0
def export_user_data(request):
    generateusercsv_task.delay(request.user.pk, language=get_language())
    return HttpResponse({"success": True})
Beispiel #2
0
def export_user_data(request, user_email):
    if request.user.email != user_email:
        return HttpResponseForbidden(_("Cannot export another user's data"))
    generateusercsv_task.delay(user_email)
    return HttpResponse({"success": True})