-# -*- coding: utf-8 -*-
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
next_suffix = models.IntegerField()
purpose = models.CharField(max_length=4, choices=PURPOSE_CHOICES)
- def __unicode__(self):
+ def __str__(self):
return self.prefix
@classmethod
class ONIXRecord(models.Model):
- isbn_pool = models.ForeignKey(ISBNPool)
+ isbn_pool = models.ForeignKey(ISBNPool, models.PROTECT)
datestamp = models.DateField(auto_now=True)
suffix = models.IntegerField()
product_form = models.CharField(max_length=4)