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
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), })
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), }, )
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
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
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, })
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), })