Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Sort senders by name

Daniel Quinn57bae9969b51
diff --git a/src/documents/models.py b/src/documents/models.py
index be00f5624..c8c7b08f6 100644
--- a/src/documents/models.py
+++ b/src/documents/models.py
@@ -11,6 +11,9 @@ class Sender(models.Model):
name = models.CharField(max_length=128, unique=True)
slug = models.SlugField()
+ class Meta(object):
+ ordering = ("name",)
+
def save(self, *args, **kwargs):
if not self.slug:
self.slug = slugify(self.name)