From c37f642cff731e6b8eaedf18cfe42241b74d9a70 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 27 May 2018 23:21:36 +0100 Subject: [PATCH] Remove old Python2.7-style code --- src/documents/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/documents/models.py b/src/documents/models.py index 5c8c804a4..245655117 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -57,7 +57,7 @@ class MatchingModel(models.Model): is_insensitive = models.BooleanField(default=True) - class Meta(object): + class Meta: abstract = True def __str__(self): @@ -156,7 +156,7 @@ class Correspondent(MatchingModel): # better safe than sorry. SAFE_REGEX = re.compile(r"^[\w\- ,.']+$") - class Meta(object): + class Meta: ordering = ("name",) @@ -243,7 +243,7 @@ class Document(models.Model): editable=False ) - class Meta(object): + class Meta: ordering = ("correspondent", "title") def __str__(self): @@ -322,7 +322,7 @@ class Log(models.Model): objects = LogManager() - class Meta(object): + class Meta: ordering = ("-modified",) def __str__(self):