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