Skip to content

Commit

Permalink
order on model
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wohnlich committed Sep 27, 2014
1 parent 8a71704 commit 9826e22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def slotName(self):

def __unicode__(self):
return self.nameDescription and self.name + ' (' + (self.nameDescription) + ')' or self.name

class Meta:
ordering = ['-ilvl','name']

class Gem(models.Model):
id = models.IntegerField(primary_key=True)
Expand Down

0 comments on commit 9826e22

Please sign in to comment.