Skip to content
Browse files

add ordering

  • Loading branch information...
1 parent 0115709 commit 5f62f921d92a78c84a387a947c6ece90443340a0 @tswicegood committed Mar 24, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 hero_content/models.py
View
3 hero_content/models.py
@@ -17,5 +17,8 @@ class HeroAction(models.Model):
is_default = models.BooleanField()
hero = models.ForeignKey(Hero, related_name="actions")
+ class Meta:
+ ordering = ["-is_default", ]
+
def __unicode__(self):
return "%s (%s)" % (self.title, self.url)

0 comments on commit 5f62f92

Please sign in to comment.
Something went wrong with that request. Please try again.