From c123e7fce2970b9964a9864c77aef4b9bb53fd79 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Tue, 25 Jul 2017 12:07:15 +0200 Subject: [PATCH] cite text not required --- .../migrations/0004_auto_20170725_1204.py | 19 +++++++++++++++++++ src/social/models.py | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/social/migrations/0004_auto_20170725_1204.py diff --git a/src/social/migrations/0004_auto_20170725_1204.py b/src/social/migrations/0004_auto_20170725_1204.py new file mode 100644 index 000000000..fb79d8a44 --- /dev/null +++ b/src/social/migrations/0004_auto_20170725_1204.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('social', '0003_cite_banner'), + ] + + operations = [ + migrations.AlterField( + model_name='cite', + name='text', + field=models.TextField(verbose_name='text', blank=True), + ), + ] diff --git a/src/social/models.py b/src/social/models.py index 806530501..979c0d4cd 100644 --- a/src/social/models.py +++ b/src/social/models.py @@ -12,7 +12,7 @@ from catalogue.models import Book class Cite(models.Model): book = models.ForeignKey(Book, verbose_name=_('book'), null=True, blank=True) - text = models.TextField(_('text')) + 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) link = models.URLField(_('link')) -- 2.20.1