Commit b82ddb8d authored by Arnaud Fabre's avatar Arnaud Fabre

updates representatives ordering

parent 5737c10e
......@@ -130,7 +130,9 @@ class Representative(HashableModel, TimeStampedModel):
genders = {0: 'N/A', 1: 'F', 2: 'M'}
return genders[self.gender]
class Meta:
ordering = ['last_name', 'first_name']
# Contact related models
class Contact(TimeStampedModel):
representative = models.ForeignKey(Representative)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment