From: Jan Szejko <janek37@gmail.com>
Date: Tue, 25 Jul 2017 10:07:15 +0000 (+0200)
Subject: cite text not required
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/c123e7fce2970b9964a9864c77aef4b9bb53fd79?hp=d1b295ffb279a386a5a5e017a66693fab776be49

cite text not required
---

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'))