X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..ce463c2534ce26e07055092cce167fe5a510aa5a:/src/chunks/models.py?ds=sidebyside diff --git a/src/chunks/models.py b/src/chunks/models.py index 37b9f600a..a9f6e7f88 100644 --- a/src/chunks/models.py +++ b/src/chunks/models.py @@ -23,7 +23,7 @@ class Chunk(models.Model): verbose_name = _('chunk') verbose_name_plural = _('chunks') - def __unicode__(self): + def __str__(self): return self.key def save(self, *args, **kwargs): @@ -45,5 +45,5 @@ class Attachment(models.Model): ordering = ('key',) verbose_name, verbose_name_plural = _('attachment'), _('attachments') - def __unicode__(self): + def __str__(self): return self.key