X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e180be7cce99d59054b206a061386188c5652f02..084f20588e607aa9ae3ed280b6a2f0349b6a3200:/src/social/models.py 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)