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 'Submission.key_sent'
12 db.add_column(u'wtem_submission', 'key_sent',
13 self.gf('django.db.models.fields.BooleanField')(default=False),
17 def backwards(self, orm):
18 # Deleting field 'Submission.key_sent'
19 db.delete_column(u'wtem_submission', 'key_sent')
24 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'},
25 'body': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
26 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
27 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
28 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_index': 'True'}),
29 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
33 'Meta': {'object_name': 'Attachment'},
34 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
35 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37 'submission': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['wtem.Submission']"})
40 'Meta': {'object_name': 'Submission'},
41 'answers': ('django.db.models.fields.CharField', [], {'max_length': '65536', 'null': 'True', 'blank': 'True'}),
42 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
43 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
44 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
45 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}),
47 'key_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
48 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
52 complete_apps = ['wtem']