X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d6f190d50127a1aca615ff505a8a2595b4cfb7de..6653ce8ab102d16224dabebb8bfa884198698b73:/src/isbn/models.py diff --git a/src/isbn/models.py b/src/isbn/models.py index a4fa28a4a..ca8dbee15 100644 --- a/src/isbn/models.py +++ b/src/isbn/models.py @@ -22,7 +22,7 @@ class ISBNPool(models.Model): next_suffix = models.IntegerField() purpose = models.CharField(max_length=4, choices=PURPOSE_CHOICES) - def __unicode__(self): + def __str__(self): return self.prefix @classmethod