1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
11 # Adding field 'Question.changed_at'
12 db.add_column('questions_question', 'changed_at',
13 self.gf('django.db.models.fields.DateTimeField')(auto_now=True, default=datetime.datetime.now, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Question.changed_at'
19 db.delete_column('questions_question', 'changed_at')
23 'questions.question': {
24 'Meta': {'ordering': "['-created_at']", 'object_name': 'Question'},
25 '_answer_rendered': ('django.db.models.fields.TextField', [], {}),
26 'answer': ('markupfield.fields.MarkupField', [], {'rendered_field': 'True', 'blank': 'True'}),
27 'answer_markup_type': ('django.db.models.fields.CharField', [], {'default': "'textile_pl'", 'max_length': '30', 'blank': 'True'}),
28 'answered': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
29 'answered_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
30 'approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
31 'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
32 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
33 'edited_question': ('django.db.models.fields.TextField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
34 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'published': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
37 'published_at': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
38 'question': ('django.db.models.fields.TextField', [], {'db_index': 'True'})
42 complete_apps = ['questions']