Machina preview.
[wolnelektury.git] / src / pdcounter / models.py
index 24866fe..4454e5a 100644 (file)
@@ -28,7 +28,7 @@ class Author(models.Model):
     def category(self):
         return "author"
 
     def category(self):
         return "author"
 
-    def __unicode__(self):
+    def __str__(self):
         return self.name
 
     def __repr__(self):
         return self.name
 
     def __repr__(self):
@@ -71,7 +71,7 @@ class BookStub(models.Model):
         verbose_name = _('book stub')
         verbose_name_plural = _('book stubs')
 
         verbose_name = _('book stub')
         verbose_name_plural = _('book stubs')
 
-    def __unicode__(self):
+    def __str__(self):
         return self.title
 
     @permalink
         return self.title
 
     @permalink