Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Issue #50: Sort careers page by year #54

Merged
merged 1 commit into from

1 participant

@rogerskw
Owner

No description provided.

@rogerskw rogerskw merged commit df26943 into from
@rogerskw rogerskw deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 8, 2014
  1. @rogerskw
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 4 deletions.
  1. +2 −4 info/views.py
View
6 info/views.py
@@ -83,9 +83,7 @@ def general_listing(request, isAlumniFilter, isPledgeFilter, name):
def resumes(request):
year = date.today().year
- years = []
- for i in xrange(5):
- years.append(year+i)
+ years = range(year, year+5)
grad_year_requests = request.GET.getlist('gradyear')
major_requests = request.GET.getlist('major')
grad_year_reqs = Q()
@@ -101,7 +99,7 @@ def resumes(request):
return HttpResponse(t.render(c))
def careers(request):
- jobs = Job.objects.all()
+ jobs = Job.objects.all().order_by('-year')
return render(request, 'careers.html', {'jobs': jobs})
def convert_brothers_to_brotherentities(broList):
Something went wrong with that request. Please try again.