Handling special case with zero clicks
[prawokultury.git] / events / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding model 'Event'
12         db.create_table('events_event', (
13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('date', self.gf('django.db.models.fields.DateTimeField')(max_length=255, db_index=True)),
15             ('link', self.gf('django.db.models.fields.URLField')(max_length=200)),
16             ('title_pl', self.gf('django.db.models.fields.CharField')(max_length=255)),
17             ('title_en', self.gf('django.db.models.fields.CharField')(max_length=255)),
18             ('organizer_pl', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
19             ('organizer_en', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
20             ('place_pl', self.gf('django.db.models.fields.CharField')(max_length=255)),
21             ('place_en', self.gf('django.db.models.fields.CharField')(max_length=255)),
22         ))
23         db.send_create_signal('events', ['Event'])
24
25
26     def backwards(self, orm):
27         # Deleting model 'Event'
28         db.delete_table('events_event')
29
30
31     models = {
32         'events.event': {
33             'Meta': {'ordering': "['date']", 'object_name': 'Event'},
34             'date': ('django.db.models.fields.DateTimeField', [], {'max_length': '255', 'db_index': 'True'}),
35             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36             'link': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
37             'organizer_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
38             'organizer_pl': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
39             'place_en': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
40             'place_pl': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
41             'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
42             'title_pl': ('django.db.models.fields.CharField', [], {'max_length': '255'})
43         }
44     }
45
46     complete_apps = ['events']