author = models.ForeignKey(Author, models.CASCADE)
book = models.ForeignKey('Book', models.CASCADE)
author = models.ForeignKey(Author, models.CASCADE)
book = models.ForeignKey('Book', models.CASCADE)
class Category(WikidataModel):
name = models.CharField(_("name"), max_length=255)
class Category(WikidataModel):
name = models.CharField(_("name"), max_length=255)
)
original_year = models.IntegerField(_('original publication year'), null=True, blank=True)
pd_year = models.IntegerField(_('year of entry into PD'), null=True, blank=True)
)
original_year = models.IntegerField(_('original publication year'), null=True, blank=True)
pd_year = models.IntegerField(_('year of entry into PD'), null=True, blank=True)
gazeta_link = models.CharField(_("gazeta link"), max_length=255, blank=True)
collections = models.ManyToManyField("Collection", blank=True, verbose_name=_("collections"))
gazeta_link = models.CharField(_("gazeta link"), max_length=255, blank=True)
collections = models.ManyToManyField("Collection", blank=True, verbose_name=_("collections"))
def get_absolute_url(self):
return reverse("catalogue_book", args=[self.slug])
def get_absolute_url(self):
return reverse("catalogue_book", args=[self.slug])
def update_monthly_stats(self):
# Find publication date.
# By default, get previous 12 months.
def update_monthly_stats(self):
# Find publication date.
# By default, get previous 12 months.