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.end_time'
12 db.add_column(u'wtem_submission', 'end_time',
13 self.gf('django.db.models.fields.CharField')(max_length=5, null=True, blank=True),
17 def backwards(self, orm):
18 # Deleting field 'Submission.end_time'
19 db.delete_column(u'wtem_submission', 'end_time')
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', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
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', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
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', [], {'default': '{}'}),
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', [], {'default': '{}'}),
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']"})
82 'Meta': {'object_name': 'Submission'},
83 'answers': ('django.db.models.fields.CharField', [], {'max_length': '65536', 'null': 'True', 'blank': 'True'}),
84 'contact': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contact.Contact']", 'null': 'True'}),
85 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '100'}),
86 'end_time': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'}),
87 'examiners': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
88 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
89 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}),
91 'key_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
93 'marks': ('jsonfield.fields.JSONField', [], {'default': '{}'})
97 complete_apps = ['wtem']