text: # encoding: 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 field 'ReservedDates.Place'
          db.add_column('places_reserveddates', 'Place', self.gf('django.db.models.fields.related.ForeignKey')(default=None, to=orm['places.Place']), keep_default=False)
  
  
      def backwards(self, orm):
          
          # Deleting field 'ReservedDates.Place'
          db.delete_column('places_reserveddates', 'Place_id')
  
  
      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'})
          },
          'places.booking': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Booking'},
              'end': ('django.db.models.fields.DateField', [], {}),
              'guest': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'guest'", 'to': "orm['auth.User']"}),
              'guest_payment': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
              'host': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'host'", 'to': "orm['auth.User']"}),
              'host_earning': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'payment_type': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
              'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Place']"}),
              'reservation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.ReservedDates']"}),
              'start': ('django.db.models.fields.DateField', [], {}),
              'status': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'summary': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'valid': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
          },
          'places.currency': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Currency'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'code': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
              'factor': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'main': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.description': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Description'},
              'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'lang': ('django.db.models.fields.CharField', [], {'max_length': '5'}),
              'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Place']"}),
              'text': ('django.db.models.fields.TextField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.friendship': {
              'Meta': {'object_name': 'Friendship'},
              'confirmed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'profile': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Profile']"}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
          },
          'places.message': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Message'},
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'read': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'receiver': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'receiver'", 'to': "orm['auth.User']"}),
              'sender': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sender'", 'to': "orm['auth.User']"}),
              'status': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'text': ('django.db.models.fields.TextField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.photo': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Photo'},
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
              'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Place']"}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.place': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Place'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'bathrooms': ('django.db.models.fields.SmallIntegerField', [], {}),
              'bed_type': ('django.db.models.fields.SmallIntegerField', [], {}),
              'bedroom': ('django.db.models.fields.SmallIntegerField', [], {}),
              'cancellation': ('django.db.models.fields.SmallIntegerField', [], {}),
              'capacity': ('django.db.models.fields.SmallIntegerField', [], {}),
              'city': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
              'cleaning_fee': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'}),
              'country': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
              'district': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
              'emergency_phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
              'extra_limit': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
              'extra_price': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '6', 'decimal_places': '2', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'manual': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
              'max_stay': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
              'min_stay': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'monthly_discount': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
              'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
              'pets': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
              'postcode': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
              'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '6', 'decimal_places': '2'}),
              'rules': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
              'size': ('django.db.models.fields.IntegerField', [], {}),
              'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
              'space': ('django.db.models.fields.SmallIntegerField', [], {}),
              'state': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
              'street': ('django.db.models.fields.CharField', [], {'max_length': '60'}),
              'street_view': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'tags': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['places.Tag']", 'symmetrical': 'False'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'title': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
              'type': ('django.db.models.fields.SmallIntegerField', [], {}),
              'weekly_discount': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'})
          },
          'places.placereview': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'PlaceReview'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Place']"}),
              'rating': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
              'status': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'text': ('django.db.models.fields.TextField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'writer': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
          },
          'places.profile': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Profile'},
              'brithdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
              'cell': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
              'city': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'currency': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Currency']"}),
              'facebook': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
              'favorites': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['places.Place']", 'symmetrical': 'False'}),
              'friends': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'friend_profiles'", 'symmetrical': 'False', 'through': "orm['places.Friendship']", 'to': "orm['auth.User']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'lang': ('django.db.models.fields.CharField', [], {'default': "'tr_TR'", 'max_length': '5'}),
              'lastlogin': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
              'occupation': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
              'phone': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'twitter': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
              'usr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
          },
          'places.reserveddates': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'ReservedDates'},
              'Place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.Place']"}),
              'end': ('django.db.models.fields.DateField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'start': ('django.db.models.fields.DateField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.sessionalprice': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'SessionalPrice'},
              'end': ('django.db.models.fields.DateField', [], {}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
              'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
              'start': ('django.db.models.fields.DateField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'weekend_price': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '2', 'blank': 'True'})
          },
          'places.tag': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Tag'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['places.TagCategory']"}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.tagcategory': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'TagCategory'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
          },
          'places.transaction': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'Transaction'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '8', 'decimal_places': '2'}),
              'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
              'details': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
              'reciver_type': ('django.db.models.fields.SmallIntegerField', [], {}),
              'sender_type': ('django.db.models.fields.SmallIntegerField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'type': ('django.db.models.fields.SmallIntegerField', [], {}),
              'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
          },
          'places.userreview': {
              'Meta': {'ordering': "['timestamp']", 'object_name': 'UserReview'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
              'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'person': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'person'", 'to': "orm['auth.User']"}),
              'status': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
              'text': ('django.db.models.fields.TextField', [], {}),
              'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              'writer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'writer'", 'to': "orm['auth.User']"})
          }
      }
  
      complete_apps = ['places']
  