X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0ffaeae32918d959e94e2d94e0a020458a409a3a..c0a7799619e217e2eac724b1a688ad37f0182253:/src/social/models.py?ds=sidebyside diff --git a/src/social/models.py b/src/social/models.py index 6f1f697fa..c9334d833 100644 --- a/src/social/models.py +++ b/src/social/models.py @@ -5,7 +5,7 @@ from random import randint from django.db import models from django.conf import settings from django.core.exceptions import ValidationError -from django.core.urlresolvers import reverse +from django.urls import reverse from django.utils.translation import ugettext_lazy as _, string_concat from ssify import flush_ssi_includes from catalogue.models import Book @@ -36,7 +36,7 @@ class BannerGroup(models.Model): class Cite(models.Model): - book = models.ForeignKey(Book, verbose_name=_('book'), null=True, blank=True) + book = models.ForeignKey(Book, models.CASCADE, verbose_name=_('book'), null=True, blank=True) text = models.TextField(_('text'), blank=True) small = models.BooleanField(_('small'), default=False, help_text=_('Make this cite display smaller.')) vip = models.CharField(_('VIP'), max_length=128, null=True, blank=True)