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 'Location'
          db.create_table('events_location', (
              ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
              ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
              ('street', self.gf('django.db.models.fields.CharField')(max_length=255)),
              ('town', self.gf('django.db.models.fields.CharField')(max_length=255)),
              ('country', self.gf('django.db.models.fields.CharField')(max_length=255)),
          ))
          db.send_create_signal('events', ['Location'])
  
          # Adding model 'Event'
          db.create_table('events_event', (
              ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
              ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
              ('url', self.gf('django.db.models.fields.URLField')(max_length=255)),
              ('location', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['events.Location'], null=True, blank=True)),
              ('start_date', self.gf('django.db.models.fields.DateTimeField')()),
              ('end_date', self.gf('django.db.models.fields.DateTimeField')()),
          ))
          db.send_create_signal('events', ['Event'])
  
  
      def backwards(self, orm):
          # Deleting model 'Location'
          db.delete_table('events_location')
  
          # Deleting model 'Event'
          db.delete_table('events_event')
  
  
      models = {
          'events.event': {
              'Meta': {'object_name': 'Event'},
              'end_date': ('django.db.models.fields.DateTimeField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['events.Location']", 'null': 'True', 'blank': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'start_date': ('django.db.models.fields.DateTimeField', [], {}),
              'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
          },
          'events.location': {
              'Meta': {'object_name': 'Location'},
              'country': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'street': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
              'town': ('django.db.models.fields.CharField', [], {'max_length': '255'})
          }
      }
  
      complete_apps = ['events']