text: # -*- coding: utf-8 -*-
  import datetime
  from south.db import db
  from south.v2 import SchemaMigration
  from django.db import models
  
  
  class Migration(SchemaMigration):
  
      def forwards(self, orm):
          # Adding model 'Video'
          db.create_table('event_video', (
              ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
              ('title', self.gf('django.db.models.fields.CharField')(default='', max_length=255, blank=True)),
              ('description', self.gf('django.db.models.fields.CharField')(default='', max_length=255, blank=True)),
              ('url', self.gf('django.db.models.fields.URLField')(max_length=200)),
              ('create_user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='+', to=orm['auth.User'])),
              ('create_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
              ('status', self.gf('django.db.models.fields.CharField')(default='normal', max_length=20)),
          ))
          db.send_create_signal('event', ['Video'])
  
          # Adding unique constraint on 'Activity', fields ['slug']
          db.create_unique('event_activity', ['slug'])
  
  
      def backwards(self, orm):
          # Removing unique constraint on 'Activity', fields ['slug']
          db.delete_unique('event_activity', ['slug'])
  
          # Deleting model 'Video'
          db.delete_table('event_video')
  
  
      models = {
          'auth.group': {
              'Meta': {'object_name': 'Group'},
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
              'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
          },
          'auth.permission': {
              'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
              'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
          },
          'auth.user': {
              'Meta': {'object_name': 'User'},
              'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
              'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
              'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
              'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
              'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
              'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
          },
          'contenttypes.contenttype': {
              'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
              'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
          },
          'event.activity': {
              'Meta': {'object_name': 'Activity'},
              'create_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'create_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'hostedActivities'", 'to': "orm['auth.User']"}),
              'description': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'end_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'participants': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'activities'", 'symmetrical': 'False', 'through': "orm['event.Participation']", 'to': "orm['auth.User']"}),
              'slug': ('django.db.models.fields.CharField', [], {'default': "''", 'unique': 'True', 'max_length': '255', 'blank': 'True'}),
              'start_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'url': ('django.db.models.fields.URLField', [], {'default': "''", 'max_length': '200', 'blank': 'True'}),
              'vote_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
          },
          'event.campaign': {
              'Meta': {'object_name': 'Campaign', '_ormbases': ['event.Activity']},
              'activity_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['event.Activity']", 'unique': 'True', 'primary_key': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'default': "'preparing'", 'max_length': '20'})
          },
          'event.event': {
              'Meta': {'object_name': 'Event', '_ormbases': ['event.Activity']},
              'activity_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['event.Activity']", 'unique': 'True', 'primary_key': 'True'}),
              'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True'}),
              'location': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True'}),
              'num_of_ppl': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'default': "'normal'", 'max_length': '20'})
          },
          'event.participation': {
              'Meta': {'object_name': 'Participation'},
              'activity': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': "orm['event.Activity']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'note': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'participant': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': "orm['auth.User']"}),
              'status': ('django.db.models.fields.CharField', [], {'default': "'invited'", 'max_length': '20'})
          },
          'event.video': {
              'Meta': {'object_name': 'Video'},
              'create_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'create_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': "orm['auth.User']"}),
              'description': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'default': "'normal'", 'max_length': '20'}),
              'title': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
          },
          'event.vote': {
              'Meta': {'object_name': 'Vote'},
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['contenttypes.ContentType']"}),
              'entity_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'note': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '255', 'blank': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'default': "'neutral'", 'max_length': '20'}),
              'vote_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'voter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': "orm['auth.User']"})
          },
          'upload.imageupload': {
              'Meta': {'object_name': 'ImageUpload'},
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'images'", 'to': "orm['contenttypes.ContentType']"}),
              'create_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
              'create_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'to': "orm['auth.User']"}),
              'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'entity_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'image_large': ('django.db.models.fields.files.ImageField', [], {'max_length': '255', 'db_index': 'True'}),
              'image_large_height': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'image_large_width': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'image_medium': ('django.db.models.fields.files.ImageField', [], {'db_index': 'True', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'image_medium_height': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'image_medium_width': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'image_small': ('django.db.models.fields.files.ImageField', [], {'db_index': 'True', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
              'image_small_height': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'image_small_width': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
              'status': ('django.db.models.fields.CharField', [], {'default': "'normal'", 'max_length': '20'}),
              'usage': ('django.db.models.fields.CharField', [], {'default': "'original'", 'max_length': '20'})
          }
      }
  
      complete_apps = ['event']