summaryrefslogtreecommitdiff
path: root/project/kiwipycon/sponsor/migrations/0001_initial.py
blob: 2512f1a4cb5e09cea8b7becae3af57d08e7214a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- coding: utf-8 -*-

from south.db import db
from django.db import models
from project.kiwipycon.sponsor.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding model 'Sponsor'
        db.create_table('sponsor_sponsor', (
            ('id', models.AutoField(primary_key=True)),
            ('slug', models.SlugField()),
            ('title', models.CharField(max_length=255)),
            ('type', models.CharField(max_length=10)),
            ('url', models.URLField(verify_exists=False, blank=True)),
            ('contact_name', models.CharField(max_length=255)),
            ('contact_phone', models.CharField(max_length=255)),
            ('contact_email', models.CharField(max_length=255)),
            ('logo', models.CharField(max_length=64, blank=True)),
            ('guests', models.IntegerField()),
        ))
        db.send_create_signal('sponsor', ['Sponsor'])
        
    
    
    def backwards(self, orm):
        
        # Deleting model 'Sponsor'
        db.delete_table('sponsor_sponsor')
        
    
    
    models = {
        'sponsor.sponsor': {
            'contact_email': ('models.CharField', [], {'max_length': '255'}),
            'contact_name': ('models.CharField', [], {'max_length': '255'}),
            'contact_phone': ('models.CharField', [], {'max_length': '255'}),
            'guests': ('models.IntegerField', [], {}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'logo': ('models.CharField', [], {'max_length': '64', 'blank': 'True'}),
            'slug': ('models.SlugField', [], {}),
            'title': ('models.CharField', [], {'max_length': '255'}),
            'type': ('models.CharField', [], {'max_length': '10'}),
            'url': ('models.URLField', [], {'verify_exists': 'False', 'blank': 'True'})
        }
    }
    
    complete_apps = ['sponsor']