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 ('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)),
19 db.send_create_signal('sponsors', ['Sponsor'])
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)),
28 db.send_create_signal('sponsors', ['SponsorPage'])
31 def backwards(self, orm):
33 # Deleting model 'Sponsor'
34 db.delete_table('sponsors_sponsor')
36 # Deleting model 'SponsorPage'
37 db.delete_table('sponsors_sponsorpage')
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'})
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': '{}'})
58 complete_apps = ['sponsors']