Filter menu items
[wolnelektury.git] / apps / sponsors / 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 'Sponsor'
12         db.create_table(u'sponsors_sponsor', (
13             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14             ('name', self.gf('django.db.models.fields.CharField')(max_length=120)),
15             ('_description', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
16             ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
17             ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
18         ))
19         db.send_create_signal(u'sponsors', ['Sponsor'])
20
21         # Adding model 'SponsorPage'
22         db.create_table(u'sponsors_sponsorpage', (
23             (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
24             ('name', self.gf('django.db.models.fields.CharField')(max_length=120)),
25             ('sponsors', self.gf('jsonfield.fields.JSONField')(default='{}')),
26             ('_html', self.gf('django.db.models.fields.TextField')(blank=True)),
27             ('sprite', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
28         ))
29         db.send_create_signal(u'sponsors', ['SponsorPage'])
30
31
32     def backwards(self, orm):
33         # Deleting model 'Sponsor'
34         db.delete_table(u'sponsors_sponsor')
35
36         # Deleting model 'SponsorPage'
37         db.delete_table(u'sponsors_sponsorpage')
38
39
40     models = {
41         u'sponsors.sponsor': {
42             'Meta': {'object_name': 'Sponsor'},
43             '_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
44             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45             'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
46             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
47             'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
48         },
49         u'sponsors.sponsorpage': {
50             'Meta': {'object_name': 'SponsorPage'},
51             '_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
52             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
54             'sponsors': ('jsonfield.fields.JSONField', [], {'default': "'{}'"}),
55             'sprite': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
56         }
57     }
58
59     complete_apps = ['sponsors']