misc: wrap Page __str__ value in str() to please pylint (#67470)

This commit is contained in:
Frédéric Péters 2022-07-21 13:26:03 +02:00
parent b6e5eb1053
commit 4a8f18d89b
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class Page(models.Model):
ordering = ['order']
def __str__(self):
return self.title
return str(self.title)
def natural_key(self):
return (self.get_online_url(follow_redirection=False).strip('/'),)