Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Issue #51: Sort Theta Tau positions and jobs by year (descending) on the #55

Merged
merged 1 commit into from

1 participant

Kyle Rogers
Kyle Rogers
Owner

brother profile page

Kyle Rogers rogerskw merged commit f9bd122 into from
Kyle Rogers 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. Kyle Rogers
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 info/models.py
4 info/models.py
View
@@ -128,8 +128,8 @@ def __str__(self):
class BrotherEntity():
def __init__(self, brotherObj):
self.brother = brotherObj
- heldPositions = HeldPosition.objects.filter(brother = self.brother.id)
- retrievedJobs = Job.objects.filter(brother = self.brother.id)
+ heldPositions = HeldPosition.objects.filter(brother = self.brother.id).order_by('-year')
+ retrievedJobs = Job.objects.filter(brother = self.brother.id).order_by('-year')
self.positions = []
for heldPosition in heldPositions:
self.positions.append(heldPosition)
Something went wrong with that request. Please try again.