예제 #1
0
 def get_context_data(self, **kwargs):
     context = super(WorkablePositionDetailView,
                     self).get_context_data(**kwargs)
     context['positions'] = utils.get_all_positions(
         filters={'category__name': context['position'].category.name},
         order_by=lambda x: x.title)
     return context
예제 #2
0
def listings(request):
    return render(
        request, 'careers/listings.jinja', {
            'positions':
            utils.get_all_positions(order_by=lambda x: u'{0} {1}'.format(
                x.category.name, x.title)),
            'form':
            PositionFilterForm(request.GET or None),
        })
예제 #3
0
파일: views.py 프로젝트: simo97/lumbergh
def listings(request):
    return render(
        request,
        "careers/listings.jinja",
        {
            "positions": utils.get_all_positions(order_by=lambda x: u"{0} {1}".format(x.category.name, x.title)),
            "form": PositionFilterForm(request.GET or None),
        },
    )
예제 #4
0
파일: views.py 프로젝트: simo97/lumbergh
    def get_context_data(self, **kwargs):
        context = super(JobvitePositionDetailView, self).get_context_data(**kwargs)

        # Add applicant source param for jobvite
        context["position"].apply_url += "&s=PDN"

        context["positions"] = utils.get_all_positions(
            filters={"category__name": context["position"].category.name}, order_by=lambda x: x.title
        )
        return context
예제 #5
0
    def get_context_data(self, **kwargs):
        context = super(JobvitePositionDetailView,
                        self).get_context_data(**kwargs)

        # Add applicant source param for jobvite
        context['position'].apply_url += '&s=PDN'

        context['positions'] = utils.get_all_positions(
            filters={'category__name': context['position'].category.name},
            order_by=lambda x: x.title)
        return context
예제 #6
0
def position(request, job_id=None):
    # Cannot use __exact instead of __contains due to MySQL collation
    # which does not allow case sensitive matching.
    position = get_object_or_404(jobvite_models.Position, job_id__contains=job_id)
    positions = utils.get_all_positions(filters={'category__name': position.category.name},
                                        order_by=lambda x: x.title)

    # Add applicant source param for jobvite
    position.apply_url += '&s=PDN'

    return render(request, 'careers/position.html', {
        'position': position,
        'positions': positions,
    })
예제 #7
0
 def get_context_data(self, **kwargs):
     context = super(WorkablePositionDetailView, self).get_context_data(**kwargs)
     context['positions'] = utils.get_all_positions(
         filters={'category__name': context['position'].category.name},
         order_by=lambda x: x.title)
     return context
예제 #8
0
def listings(request):
    return render(request, 'careers/listings.html', {
        'positions': utils.get_all_positions(
            order_by=lambda x: u'{0} {1}'.format(x.category.name, x.title)),
        'form': PositionFilterForm(request.GET or None),
    })