SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 96840862 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add ordering to Meta of PotentialFellow

parent efbb7b40
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,9 @@ class PotentialFellowship(models.Model):
status = models.CharField(max_length=32, choices=POTENTIAL_FELLOWSHIP_STATUSES,
default=POTENTIAL_FELLOWSHIP_IDENTIFIED)
class Meta:
ordering = ['profile__last_name']
def __str__(self):
return '%s, %s' % (self.profile.__str__(), self.get_status_display())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment