1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
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 model 'TeacherConfirmation'
12 db.create_table(u'wtem_teacherconfirmation', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('contact', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contact.Contact'], null=True)),
15 ('key', self.gf('django.db.models.fields.CharField')(max_length=30)),
16 ('confirmed', self.gf('django.db.models.fields.BooleanField')(default=False)),
18 db.send_create_signal(u'wtem', ['TeacherConfirmation'])
21 def backwards(self, orm):
22 # Deleting model 'TeacherConfirmation'
23 db.delete_table(u'wtem_teacherconfirmation')
28 'Meta': {'object_name': 'Group'},
29 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
31 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
34 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
35 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
36 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
37 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
41 'Meta': {'object_name': 'User'},
42 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
43 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
44 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
45 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
46 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
48 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
49 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
51 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
52 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
53 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
54 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
57 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'},
58 'body': ('jsonfield.fields.JSONField', [], {}),
59 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
60 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
61 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_index': 'True'}),
62 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
65 u'contenttypes.contenttype': {
66 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
67 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
68 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
70 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
73 'Meta': {'object_name': 'Assignment'},
74 'exercises': ('jsonfield.fields.JSONField', [], {}),
75 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'unique': 'True'})
79 'Meta': {'object_name': 'Attachment'},
80 'exercise_id': ('django.db.models.fields.IntegerField', [], {}),
81 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
82 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'submission': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['wtem.Submission']"}),
84 'tag': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'})
86 u'wtem.competitionstate': {
87 'Meta': {'object_name': 'CompetitionState'},
88 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'state': ('django.db.models.fields.CharField', [], {'max_length': '16'})
91 u'wtem.confirmation': {
92 'Meta': {'ordering': "['contact__contact']", 'object_name': 'Confirmation'},
93 'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
95 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
96 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
97 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98 'key': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
99 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
101 u'wtem.submission': {
102 'Meta': {'object_name': 'Submission'},
103 'answers': ('django.db.models.fields.CharField', [], {'max_length': '65536', 'null': 'True', 'blank': 'True'}),
104 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
105 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
106 'end_time': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'}),
107 'examiners': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
108 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
109 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}),
111 'key_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
113 'marks': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
114 'opened_link': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115 'random_seed': ('django.db.models.fields.IntegerField', [], {})
117 u'wtem.teacherconfirmation': {
118 'Meta': {'ordering': "['contact__contact']", 'object_name': 'TeacherConfirmation'},
119 'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
121 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'key': ('django.db.models.fields.CharField', [], {'max_length': '30'})
126 complete_apps = ['wtem']