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 model 'Sponsor'
12 db.create_table('sponsors_sponsor', (
13 ('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)),
19 db.send_create_signal('sponsors', ['Sponsor'])
21 # Adding model 'SponsorPage'
22 db.create_table('sponsors_sponsorpage', (
23 ('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)),
29 db.send_create_signal('sponsors', ['SponsorPage'])
32 def backwards(self, orm):
34 # Deleting model 'Sponsor'
35 db.delete_table('sponsors_sponsor')
37 # Deleting model 'SponsorPage'
38 db.delete_table('sponsors_sponsorpage')
43 'Meta': {'object_name': 'Sponsor'},
44 '_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'logo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
47 'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
48 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
50 'sponsors.sponsorpage': {
51 'Meta': {'object_name': 'SponsorPage'},
52 '_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
53 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
55 'sponsors': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
56 'sprite': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
60 complete_apps = ['sponsors']