mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Sort senders by name
This commit is contained in:
parent
d89349f272
commit
57bae9969b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user