diff --git a/htmleditor/migrations/0029_document_content.py b/htmleditor/migrations/0029_document_content.py new file mode 100644 index 0000000000000000000000000000000000000000..14804228db017afbe8cac57a03037172316476ea --- /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 e066ba6401298c901895f82b89c64499f8204891..21a5508db6d7763f43f9387ad431fc61877ac8ef 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']