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 'CompetitionState'
12 db.create_table(u'wtem_competitionstate', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('state', self.gf('django.db.models.fields.CharField')(max_length=16)),
16 db.send_create_signal(u'wtem', ['CompetitionState'])
18 # Adding field 'Submission.random_seed'
19 db.add_column(u'wtem_submission', 'random_seed',
20 self.gf('django.db.models.fields.IntegerField')(default=0),
24 def backwards(self, orm):
25 # Deleting model 'CompetitionState'
26 db.delete_table(u'wtem_competitionstate')
28 # Deleting field 'Submission.random_seed'
29 db.delete_column(u'wtem_submission', 'random_seed')
34 'Meta': {'object_name': 'Group'},
35 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
37 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
40 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
41 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
42 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
43 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
47 'Meta': {'object_name': 'User'},
48 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
49 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
50 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
51 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
54 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
55 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
57 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
58 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
59 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
60 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
63 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'},
64 'body': ('jsonfield.fields.JSONField', [], {}),
65 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
66 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
67 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32', 'db_index': 'True'}),
68 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
71 u'contenttypes.contenttype': {
72 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
73 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
74 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
76 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
79 'Meta': {'object_name': 'Assignment'},
80 'exercises': ('jsonfield.fields.JSONField', [], {}),
81 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'unique': 'True'})
85 'Meta': {'object_name': 'Attachment'},
86 'exercise_id': ('django.db.models.fields.IntegerField', [], {}),
87 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
88 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'submission': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['wtem.Submission']"}),
90 'tag': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'})
92 u'wtem.competitionstate': {
93 'Meta': {'object_name': 'CompetitionState'},
94 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95 'state': ('django.db.models.fields.CharField', [], {'max_length': '16'})
97 u'wtem.confirmation': {
98 'Meta': {'ordering': "['contact__contact']", 'object_name': 'Confirmation'},
99 'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
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 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
103 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104 'key': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
105 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
107 u'wtem.submission': {
108 'Meta': {'object_name': 'Submission'},
109 'answers': ('django.db.models.fields.CharField', [], {'max_length': '65536', 'null': 'True', 'blank': 'True'}),
110 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
111 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
112 'end_time': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'}),
113 'examiners': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
114 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
115 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}),
117 'key_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
119 'marks': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
120 'random_seed': ('django.db.models.fields.IntegerField', [], {})
124 complete_apps = ['wtem']