3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
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)
15 def backwards(self, orm):
17 # Deleting field 'SponsorPage.sprite'
18 db.delete_column('sponsors_sponsorpage', 'sprite')
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'})
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'})
40 complete_apps = ['sponsors']