lesmianator fix
[wolnelektury.git] / apps / sponsors / migrations / 0001_initial.py
1 # encoding: 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 class Migration(SchemaMigration):
8
9     def forwards(self, orm):
10
11         # Adding model 'Sponsor'
12         db.create_table('sponsors_sponsor', (
13             ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
14             ('logo', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
15             ('_description', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
16             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
17             ('name', self.gf('django.db.models.fields.CharField')(max_length=120)),
18         ))
19         db.send_create_signal('sponsors', ['Sponsor'])
20
21         # Adding model 'SponsorPage'
22         db.create_table('sponsors_sponsorpage', (
23             ('_html', self.gf('django.db.models.fields.TextField')(blank=True)),
24             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
25             ('sponsors', self.gf('sponsors.fields.JSONField')(default={})),
26             ('name', self.gf('django.db.models.fields.CharField')(max_length=120)),
27         ))
28         db.send_create_signal('sponsors', ['SponsorPage'])
29
30
31     def backwards(self, orm):
32
33         # Deleting model 'Sponsor'
34         db.delete_table('sponsors_sponsor')
35
36         # Deleting model 'SponsorPage'
37         db.delete_table('sponsors_sponsorpage')
38
39
40     models = {
41         'sponsors.sponsor': {
42             'Meta': {'object_name': 'Sponsor'},
43             '_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
44             '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         'sponsors.sponsorpage': {
50             'Meta': {'object_name': 'SponsorPage'},
51             '_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
52             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
54             'sponsors': ('sponsors.fields.JSONField', [], {'default': '{}'})
55         }
56     }
57
58     complete_apps = ['sponsors']