|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 from south.db import db |
|
4 from django.db import models |
|
5 from project.kiwipycon.sponsor.models import * |
|
6 |
|
7 class Migration: |
|
8 |
|
9 def forwards(self, orm): |
|
10 |
|
11 # Adding model 'Sponsor' |
|
12 db.create_table('sponsor_sponsor', ( |
|
13 ('id', models.AutoField(primary_key=True)), |
|
14 ('slug', models.SlugField()), |
|
15 ('title', models.CharField(max_length=255)), |
|
16 ('type', models.CharField(max_length=10)), |
|
17 ('url', models.URLField(verify_exists=False, blank=True)), |
|
18 ('contact_name', models.CharField(max_length=255)), |
|
19 ('contact_phone', models.CharField(max_length=255)), |
|
20 ('contact_email', models.CharField(max_length=255)), |
|
21 ('logo', models.CharField(max_length=64, blank=True)), |
|
22 ('guests', models.IntegerField()), |
|
23 )) |
|
24 db.send_create_signal('sponsor', ['Sponsor']) |
|
25 |
|
26 |
|
27 |
|
28 def backwards(self, orm): |
|
29 |
|
30 # Deleting model 'Sponsor' |
|
31 db.delete_table('sponsor_sponsor') |
|
32 |
|
33 |
|
34 |
|
35 models = { |
|
36 'sponsor.sponsor': { |
|
37 'contact_email': ('models.CharField', [], {'max_length': '255'}), |
|
38 'contact_name': ('models.CharField', [], {'max_length': '255'}), |
|
39 'contact_phone': ('models.CharField', [], {'max_length': '255'}), |
|
40 'guests': ('models.IntegerField', [], {}), |
|
41 'id': ('models.AutoField', [], {'primary_key': 'True'}), |
|
42 'logo': ('models.CharField', [], {'max_length': '64', 'blank': 'True'}), |
|
43 'slug': ('models.SlugField', [], {}), |
|
44 'title': ('models.CharField', [], {'max_length': '255'}), |
|
45 'type': ('models.CharField', [], {'max_length': '10'}), |
|
46 'url': ('models.URLField', [], {'verify_exists': 'False', 'blank': 'True'}) |
|
47 } |
|
48 } |
|
49 |
|
50 complete_apps = ['sponsor'] |