from django.contrib.auth.decorators import user_passes_test, login_required
from django.shortcuts import render
from perfiles_usuario.utils import is_capturista
from estudios_socioeconomicos.models import Estudio


@login_required
@user_passes_test(is_capturista)
def capturista_dashboard(request):
    """View to render the capturista control dashboard.

       This view shows the list of socio-economic studies that are under review
       and the action buttons to add and edit each socio-economic study.
    """
    estudios = Estudio.objects.filter(status='rechazado')
    return render(request, 'captura/dashboard_capturista.html',
                  {'estudios': estudios})

@@ -224,16 +224,17 @@
 equired%0A
+#
 @user_pa
@@ -530,49 +530,210 @@
 s = 
-Estudio.objects.filter(status='rechazado'
+%5B%5D%0A    iduser = request.user.id%0A    rechazados = Estudio.objects.filter(status='rechazado')%0A    for estudio in rechazados:%0A        if estudio.capturista_id == iduser:%0A            estudios.append(estudio
 )%0A  

Add userid to query to get socio-economic studies