sort by filename

This commit is contained in:
j 2009-08-28 11:40:26 +02:00
parent 68792d4a20
commit 14f41d44c5
4 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,4 @@
host_settings/* host_settings/*
media/* media/*
dev.sqlite
dev.sqlite

Binary file not shown.

0
templates/index.html Normal file
View file

View file

@ -52,7 +52,7 @@ class Text(models.Model):
compilation = models.BooleanField(default=False) compilation = models.BooleanField(default=False)
class Meta: class Meta:
ordering = ('title', ) ordering = ('file', 'title', 'version')
def __unicode__(self): def __unicode__(self):
return self.title return self.title