project/kiwipycon/registration/migrations/0001_initial.py
changeset 1 fda1c66b25f9
child 7 ac5a1c60c2bc
equal deleted inserted replaced
0:9a77edda77b7 1:fda1c66b25f9
       
     1 # -*- coding: utf-8 -*-
       
     2 
       
     3 from south.db import db
       
     4 from django.db import models
       
     5 from project.kiwipycon.registration.models import *
       
     6 
       
     7 class Migration:
       
     8     
       
     9     def forwards(self, orm):
       
    10         
       
    11         # Adding model 'Registration'
       
    12         db.create_table('registration_registration', (
       
    13             ('city', models.CharField(max_length=255, blank=True)),
       
    14             ('slug', models.SlugField()),
       
    15             ('submitted', models.DateTimeField(auto_now_add=True)),
       
    16             ('allow_contact', models.BooleanField(default=False)),
       
    17             ('last_mod', models.DateTimeField(auto_now=True)),
       
    18             ('payment', models.BooleanField(default=False)),
       
    19             ('organisation', models.CharField(max_length=255, blank=True)),
       
    20             ('diet', models.CharField(max_length=255, blank=True)),
       
    21             ('id', models.AutoField(primary_key=True)),
       
    22             ('sponsor', models.CharField(max_length=255, blank=True)),
       
    23             ('discount', models.BooleanField(default=False)),
       
    24             ('amount', models.IntegerField(default=0)),
       
    25             ('tshirt', models.CharField(max_length=2)),
       
    26             ('beverage', models.CharField(max_length=255, blank=True)),
       
    27             ('postcode', models.CharField(max_length=255, blank=True)),
       
    28             ('party', models.BooleanField(default=False)),
       
    29             ('registrant', models.ForeignKey(orm['auth.User'])),
       
    30             ('occupation', models.CharField(max_length=255, blank=True)),
       
    31         ))
       
    32         db.send_create_signal('registration', ['Registration'])
       
    33         
       
    34     
       
    35     
       
    36     def backwards(self, orm):
       
    37         
       
    38         # Deleting model 'Registration'
       
    39         db.delete_table('registration_registration')
       
    40         
       
    41     
       
    42     
       
    43     models = {
       
    44         'auth.user': {
       
    45             '_stub': True,
       
    46             'id': ('models.AutoField', [], {'primary_key': 'True'})
       
    47         },
       
    48         'registration.registration': {
       
    49             'allow_contact': ('models.BooleanField', [], {'default': 'False'}),
       
    50             'beverage': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    51             'city': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    52             'diet': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    53             'discount': ('models.BooleanField', [], {'default': 'False'}),
       
    54             'amount': ('models.IntegerField', [], {'default': 0}),
       
    55             'id': ('models.AutoField', [], {'primary_key': 'True'}),
       
    56             'last_mod': ('models.DateTimeField', [], {'auto_now': 'True'}),
       
    57             'occupation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    58             'organisation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    59             'party': ('models.BooleanField', [], {'default': 'False'}),
       
    60             'payment': ('models.BooleanField', [], {'default': 'False'}),
       
    61             'postcode': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    62             'registrant': ('models.ForeignKey', ['User'], {}),
       
    63             'slug': ('models.SlugField', [], {}),
       
    64             'sponsor': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    65             'submitted': ('models.DateTimeField', [], {'auto_now_add': 'True'}),
       
    66             'tshirt': ('models.CharField', [], {'max_length': '2'})
       
    67         }
       
    68     }
       
    69     
       
    70     complete_apps = ['registration']