from django.db import models
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
+from admin_ordering.models import OrderableModel
from wikidata.client import Client
from .constants import WIKIDATA
from .wikidata import WikidataMixin
culturepl_link = models.CharField(_("culture.pl link"), max_length=255, blank=True)
description = models.TextField(_("description"), blank=True)
- description_de = models.TextField(_("description (de)"), blank=True)
- description_lt = models.TextField(_("description (lt)"), blank=True)
priority = models.PositiveSmallIntegerField(
_("priority"),
return None
+class NotableBook(OrderableModel):
+ author = models.ForeignKey(Author, models.CASCADE)
+ book = models.ForeignKey('Book', models.CASCADE)
+
+
class Category(WikidataMixin, models.Model):
name = models.CharField(_("name"), max_length=255)
slug = models.SlugField(max_length=255, unique=True)