Пример #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
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
    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),
    })