cite text not required
authorJan Szejko <janek37@gmail.com>
Tue, 25 Jul 2017 10:07:15 +0000 (12:07 +0200)
committerJan Szejko <janek37@gmail.com>
Tue, 25 Jul 2017 10:07:15 +0000 (12:07 +0200)
src/social/migrations/0004_auto_20170725_1204.py [new file with mode: 0644]
src/social/models.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 (file)
index 0000000..fb79d8a
--- /dev/null
@@ -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),
+        ),
+    ]
index 8065305..979c0d4 100644 (file)
@@ -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'))