Skip to content

Commit

Permalink
bonus(ordering floors by number)
Browse files Browse the repository at this point in the history
  • Loading branch information
uzishan committed Jun 2, 2016
1 parent 110f574 commit 6e25ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __unicode__(self):
return self.title

class Meta:
unique_together = ('title', 'number')
ordering = ['number']


class Room(models.Model):
Expand Down

0 comments on commit 6e25ef6

Please sign in to comment.