python3: rename __unicode__ to __str__ (#56929)

This commit is contained in:
Benjamin Dauvergne 2021-09-14 11:01:05 +02:00
parent b2cd707fa7
commit 1458d01fcd
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class CommonSchema(models.Model):
verbose_name=_('caption template'),
blank=True)
def __unicode__(self):
def __str__(self):
return self.name
def natural_key(self):