aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-10 21:04:06 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-10 21:04:06 +0200
commit4c46b3c3c175767e3b8ae38f8323cfd97369c155 (patch)
tree814a23c5f88d6758f47d6cfaa4c900f27f7ca760
parentMake package listing more visible (diff)
downloadcollagen-4c46b3c3c175767e3b8ae38f8323cfd97369c155.tar.gz
collagen-4c46b3c3c175767e3b8ae38f8323cfd97369c155.tar.bz2
collagen-4c46b3c3c175767e3b8ae38f8323cfd97369c155.zip
Added sorting by path to File model
-rw-r--r--src/matchbox/db/main/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/matchbox/db/main/models.py b/src/matchbox/db/main/models.py
index 5448269..1b9946b 100644
--- a/src/matchbox/db/main/models.py
+++ b/src/matchbox/db/main/models.py
@@ -38,6 +38,8 @@ class Useflag(models.Model):
class File(models.Model):
path = models.CharField(max_length=65535, unique=True)
+ class Meta:
+ ordering = ('path',)
class FileType(models.Model):
name = models.CharField(max_length=20, unique=True)