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 field 'Submission.opened_link'
12 db.add_column(u'wtem_submission', 'opened_link',
13 self.gf('django.db.models.fields.BooleanField')(default=False),
17 def backwards(self, orm):
18 # Deleting field 'Submission.opened_link'
19 db.delete_column(u'wtem_submission', 'opened_link')
24 'Meta': {'object_name': 'Group'},
25 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
27 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
30 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
31 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
32 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
33 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
37 'Meta': {'object_name': 'User'},
38 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
39 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
40 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
41 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
42 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
44 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
45 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
46 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
47 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
48 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
49 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
50 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
53 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'},
54 'body': ('jsonfield.fields.JSONField', [], {}),
55 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
56 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
57 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_index': 'True'}),
58 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
61 u'contenttypes.contenttype': {
62 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
63 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
64 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
66 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
69 'Meta': {'object_name': 'Assignment'},
70 'exercises': ('jsonfield.fields.JSONField', [], {}),
71 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'unique': 'True'})
75 'Meta': {'object_name': 'Attachment'},
76 'exercise_id': ('django.db.models.fields.IntegerField', [], {}),
77 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
78 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'submission': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['wtem.Submission']"}),
80 'tag': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'})
82 u'wtem.competitionstate': {
83 'Meta': {'object_name': 'CompetitionState'},
84 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85 'state': ('django.db.models.fields.CharField', [], {'max_length': '16'})
87 u'wtem.confirmation': {
88 'Meta': {'ordering': "['contact__contact']", 'object_name': 'Confirmation'},
89 'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
91 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
92 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
93 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94 'key': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
95 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
98 'Meta': {'object_name': 'Submission'},
99 'answers': ('django.db.models.fields.CharField', [], {'max_length': '65536', 'null': 'True', 'blank': 'True'}),
100 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
101 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
102 'end_time': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'}),
103 'examiners': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
104 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
105 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}),
107 'key_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
109 'marks': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
110 'opened_link': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111 'random_seed': ('django.db.models.fields.IntegerField', [], {})
115 complete_apps = ['wtem']