From 6473a5a9dcddbc7c1ee89a4f981e58372ec358cd Mon Sep 17 00:00:00 2001
From: Steven H Johnson <shjohnson.pi@gmail.com>
Date: Tue, 5 Jul 2016 15:01:12 -0400
Subject: [PATCH] Don't require text in a document

---
 .../migrations/0029_document_content.py       | 21 +++++++++++++++++++
 htmleditor/models.py                          |  2 +-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 htmleditor/migrations/0029_document_content.py

diff --git a/htmleditor/migrations/0029_document_content.py b/htmleditor/migrations/0029_document_content.py
new file mode 100644
index 0000000..1480422
--- /dev/null
+++ b/htmleditor/migrations/0029_document_content.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.1 on 2016-07-05 18:59
+from __future__ import unicode_literals
+
+import ckeditor_uploader.fields
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('htmleditor', '0028_tabdocument_show_title'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='document',
+            name='content',
+            field=ckeditor_uploader.fields.RichTextUploadingField(blank=True),
+        ),
+    ]
diff --git a/htmleditor/models.py b/htmleditor/models.py
index e066ba6..21a5508 100644
--- a/htmleditor/models.py
+++ b/htmleditor/models.py
@@ -134,7 +134,7 @@ class Document(models.Model):
     objects = DocumentManager()
 
     name = models.CharField(max_length=MAX_LENGTH, unique=True)
-    content = RichTextUploadingField()
+    content = RichTextUploadingField(blank=True)
 
     class Meta:
         ordering = ['name']
-- 
GitLab