From 44832b74acf44591f6841de9410e1a6610a61fd0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 8 Mar 2011 12:26:37 +0100 Subject: [PATCH] fixed lessons migration --- apps/lessons/migrations/0002_auto__add_field_document_html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/lessons/migrations/0002_auto__add_field_document_html.py b/apps/lessons/migrations/0002_auto__add_field_document_html.py index 2254bf328..40494f134 100644 --- a/apps/lessons/migrations/0002_auto__add_field_document_html.py +++ b/apps/lessons/migrations/0002_auto__add_field_document_html.py @@ -9,7 +9,7 @@ class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Document.html' - db.add_column('lessons_document', 'html', self.gf('django.db.models.fields.TextField')(default=None, blank=True), keep_default=False) + db.add_column('lessons_document', 'html', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False) def backwards(self, orm): @@ -20,7 +20,7 @@ class Migration(SchemaMigration): models = { 'lessons.document': { - 'Meta': {'object_name': 'Document'}, + 'Meta': {'ordering': "['slug']", 'object_name': 'Document'}, 'author': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}), 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), -- 2.20.1