misc: wrap Page __str__ value in str() to please pylint (#67470)
This commit is contained in:
parent
b6e5eb1053
commit
4a8f18d89b
|
@ -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('/'),)
|
||||
|
|
Loading…
Reference in New Issue