1 # -*- coding: utf-8 -*-
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 field 'Event.date_end'
12 db.add_column('events_event', 'date_end',
13 self.gf('django.db.models.fields.DateTimeField')(db_index=True, default='2000-01-01 0:00', max_length=255, blank=True),
17 orm.Event.objects.all().update(date_end=models.F('date'))
19 def backwards(self, orm):
20 # Deleting field 'Event.date_end'
21 db.delete_column('events_event', 'date_end')
26 'Meta': {'ordering': "['date']", 'object_name': 'Event'},
27 'date': ('django.db.models.fields.DateTimeField', [], {'max_length': '255', 'db_index': 'True'}),
28 'date_end': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}),
29 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
31 'organizer_en': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}),
32 'organizer_pl': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}),
33 'place_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
34 'place_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
35 'published_en': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
36 'published_pl': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
37 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
38 'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
42 complete_apps = ['events']