text: # -*- coding: utf-8 -*-
  from south.utils import datetime_utils as datetime
  from south.db import db
  from south.v2 import SchemaMigration
  from django.db import models
  
  
  class Migration(SchemaMigration):
  
      def forwards(self, orm):
  
          # Changing field 'Event.abbr'
          db.alter_column(u'applicants_event', 'abbr', self.gf('django.db.models.fields.CharField')(default='', unique=True, max_length=20))
          # Adding unique constraint on 'Event', fields ['abbr']
          db.create_unique(u'applicants_event', ['abbr'])
  
  
      def backwards(self, orm):
          # Removing unique constraint on 'Event', fields ['abbr']
          db.delete_unique(u'applicants_event', ['abbr'])
  
  
          # Changing field 'Event.abbr'
          db.alter_column(u'applicants_event', 'abbr', self.gf('django.db.models.fields.CharField')(max_length=20, null=True))
  
      models = {
          u'applicants.applicant': {
              'Meta': {'object_name': 'Applicant'},
              'edit_key': ('django.db.models.fields.CharField', [], {'default': "''", 'unique': 'True', 'max_length': '100'}),
              'email': ('django.db.models.fields.EmailField', [], {'default': "''", 'unique': 'True', 'max_length': '255'}),
              'event': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['applicants.Event']", 'blank': 'True'}),
              'firstname': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '25'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'lastname': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '25'}),
              'text': ('django.db.models.fields.TextField', [], {'default': "''"})
          },
          u'applicants.attachment': {
              'Meta': {'object_name': 'Attachment'},
              'applicant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['applicants.Applicant']", 'blank': 'True'}),
              'edit_key': ('django.db.models.fields.CharField', [], {'default': "''", 'unique': 'True', 'max_length': '100'}),
              'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
          },
          u'applicants.event': {
              'Meta': {'object_name': 'Event'},
              'abbr': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20', 'blank': 'True'}),
              'app_begin_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
              'app_end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
              'begin_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
              'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'title': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255'})
          },
          u'applicants.reference': {
              'Meta': {'object_name': 'Reference'},
              'applicant': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['applicants.Applicant']", 'blank': 'True'}),
              'edit_key': ('django.db.models.fields.CharField', [], {'default': "''", 'unique': 'True', 'max_length': '100'}),
              'email': ('django.db.models.fields.EmailField', [], {'default': "''", 'unique': 'True', 'max_length': '255'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '25'}),
              'pedit_key': ('django.db.models.fields.CharField', [], {'default': "''", 'unique': 'True', 'max_length': '100'}),
              'text': ('django.db.models.fields.TextField', [], {'default': "''"})
          }
      }
  
      complete_apps = ['applicants']