コード例 #1
0
ファイル: codingjob.py プロジェクト: isususi/amcat
def index(request):
    """Show unfinished jobs"""
    jobs = Datatable(CodingJobResource)
    jobs = jobs.rowlink_reverse("annotator:annotator-codingjob",
                                args=[9999999999])
    jobs = jobs.filter(coder=request.user).hide(
        'coder', 'articleset', 'unitschema',
        'articleschema')  #.filter(status='unfinished')

    ctx = locals()
    ctx.update({
        'context': request.user,
        'selected': 'unfinished jobs',
    })

    return render(request, 'codingjobs.html', locals())