3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding field 'Document.html'
12 db.add_column('lessons_document', 'html', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)
15 def backwards(self, orm):
17 # Deleting field 'Document.html'
18 db.delete_column('lessons_document', 'html')
23 'Meta': {'ordering': "['slug']", 'object_name': 'Document'},
24 'author': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
25 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
26 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
27 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
28 'html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
29 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'slideshare_id': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
31 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
32 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'})
36 complete_apps = ['lessons']