def jobs_category(request, cvar_name=None, tvar_name=None):
    extra_context = {}
    queryset = Job.active.all()
    if cvar_name:
        category = get_object_or_404(Category, var_name=cvar_name)
        queryset = queryset.filter(category=category)
        extra_context['selected_category'] = category
    if tvar_name:
        jobtype = get_object_or_404(Type, var_name=tvar_name)
        queryset = queryset.filter(jobtype=jobtype)
        extra_context['selected_jobtype'] = jobtype
    return object_list(request, queryset=queryset,
                    extra_context=extra_context,
                    paginate_by=djobberbase_settings.DJOBBERBASE_JOBS_PER_PAGE)
run the full pipeline.
dataset/ETHPy150Open wtrevino/django-djobberbase/djobberbase/views.py/jobs_category--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/mapping_titration.py/full