Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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

@rogerskw
Owner

brother profile page

@rogerskw rogerskw merged commit f9bd122 into v1.0.0
@rogerskw rogerskw deleted the iss51 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 2 deletions.
  1. +2 −2 info/models.py
View
4 info/models.py
@@ -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.