X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/64af15fe792f42d3a7dc3e857a45577d16806255..3fceb197b7f492cf5cfcb4034b6e045638f128d4:/src/pdcounter/models.py diff --git a/src/pdcounter/models.py b/src/pdcounter/models.py index 24866fee5..4454e5af0 100644 --- a/src/pdcounter/models.py +++ b/src/pdcounter/models.py @@ -28,7 +28,7 @@ class Author(models.Model): def category(self): return "author" - def __unicode__(self): + def __str__(self): return self.name def __repr__(self): @@ -71,7 +71,7 @@ class BookStub(models.Model): verbose_name = _('book stub') verbose_name_plural = _('book stubs') - def __unicode__(self): + def __str__(self): return self.title @permalink