book children are back, + related books
[wolnelektury.git] / apps / sponsors / migrations / 0002_auto__add_field_sponsorpage_sprite.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 field 'SponsorPage.sprite'
12         db.add_column('sponsors_sponsorpage', 'sprite', self.gf('django.db.models.fields.files.ImageField')(default='', max_length=100, blank=True), keep_default=False)
13
14
15     def backwards(self, orm):
16         
17         # Deleting field 'SponsorPage.sprite'
18         db.delete_column('sponsors_sponsorpage', 'sprite')
19
20
21     models = {
22         'sponsors.sponsor': {
23             'Meta': {'object_name': 'Sponsor'},
24             '_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
25             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26             'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
27             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
28             'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
29         },
30         'sponsors.sponsorpage': {
31             'Meta': {'object_name': 'SponsorPage'},
32             '_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
33             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
35             'sponsors': ('sponsors.fields.JSONField', [], {'default': '{}'}),
36             'sprite': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
37         }
38     }
39
40     complete_apps = ['sponsors']