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 'Quiz.footer'
12 db.add_column('quiz_quiz', 'footer', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False)
15 def backwards(self, orm):
17 # Deleting field 'Quiz.footer'
18 db.delete_column('quiz_quiz', 'footer')
23 'Meta': {'ordering': "['question', 'ordering']", 'object_name': 'Answer'},
24 'go_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'go_tos'", 'null': 'True', 'to': "orm['quiz.Question']"}),
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'ordering': ('django.db.models.fields.SmallIntegerField', [], {}),
27 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['quiz.Question']"}),
28 'result': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['quiz.Result']", 'null': 'True', 'blank': 'True'}),
29 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
32 'Meta': {'ordering': "['quiz', 'ordering']", 'unique_together': "[['quiz', 'slug'], ['quiz', 'ordering']]", 'object_name': 'Question'},
33 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'ordering': ('django.db.models.fields.SmallIntegerField', [], {}),
36 'quiz': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['quiz.Quiz']"}),
37 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
38 'text': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
39 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
42 'Meta': {'ordering': "('domain',)", 'object_name': 'Quiz', '_ormbases': ['sites.Site']},
43 'description': ('django.db.models.fields.TextField', [], {}),
44 'footer': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
45 'site_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['sites.Site']", 'unique': 'True', 'primary_key': 'True'})
48 'Meta': {'ordering': "['quiz', 'title']", 'object_name': 'Result'},
49 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50 'quiz': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['quiz.Quiz']"}),
51 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
52 'text': ('django.db.models.fields.TextField', [], {}),
53 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
56 'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
57 'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
63 complete_apps = ['quiz']