mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 00:35:30 +01:00
Remove old Python2.7-style code
This commit is contained in:
parent
9df06fbb12
commit
c37f642cff
1 changed files with 4 additions and 4 deletions
|
|
@ -57,7 +57,7 @@ class MatchingModel(models.Model):
|
||||||
|
|
||||||
is_insensitive = models.BooleanField(default=True)
|
is_insensitive = models.BooleanField(default=True)
|
||||||
|
|
||||||
class Meta(object):
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
@ -156,7 +156,7 @@ class Correspondent(MatchingModel):
|
||||||
# better safe than sorry.
|
# better safe than sorry.
|
||||||
SAFE_REGEX = re.compile(r"^[\w\- ,.']+$")
|
SAFE_REGEX = re.compile(r"^[\w\- ,.']+$")
|
||||||
|
|
||||||
class Meta(object):
|
class Meta:
|
||||||
ordering = ("name",)
|
ordering = ("name",)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -243,7 +243,7 @@ class Document(models.Model):
|
||||||
editable=False
|
editable=False
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta(object):
|
class Meta:
|
||||||
ordering = ("correspondent", "title")
|
ordering = ("correspondent", "title")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
@ -322,7 +322,7 @@ class Log(models.Model):
|
||||||
|
|
||||||
objects = LogManager()
|
objects = LogManager()
|
||||||
|
|
||||||
class Meta(object):
|
class Meta:
|
||||||
ordering = ("-modified",)
|
ordering = ("-modified",)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue