turn off html autoescape for question description
[edumed.git] / comment / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding model 'CommentDocument'
12         db.create_table(u'comment_commentdocument', (
13             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
15             ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=255)),
16             ('comment_id', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
17             ('order', self.gf('django.db.models.fields.IntegerField')()),
18         ))
19         db.send_create_signal(u'comment', ['CommentDocument'])
20
21
22     def backwards(self, orm):
23         # Deleting model 'CommentDocument'
24         db.delete_table(u'comment_commentdocument')
25
26
27     models = {
28         u'comment.commentdocument': {
29             'Meta': {'ordering': "['order']", 'object_name': 'CommentDocument'},
30             'comment_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
31             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32             'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
33             'order': ('django.db.models.fields.IntegerField', [], {}),
34             'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255'})
35         }
36     }
37
38     complete_apps = ['comment']