project/kiwipycon/registration/migrations/0002_create_wifi.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 'Wifi'
       
    12         db.create_table('registration_wifi', (
       
    13             ('wifi', models.CharField(max_length=50)),
       
    14             ('user', models.ForeignKey(orm['auth.User'])),
       
    15             ('id', models.AutoField(primary_key=True)),
       
    16         ))
       
    17         db.send_create_signal('registration', ['Wifi'])
       
    18         
       
    19     
       
    20     
       
    21     def backwards(self, orm):
       
    22         
       
    23         # Deleting model 'Wifi'
       
    24         db.delete_table('registration_wifi')
       
    25         
       
    26     
       
    27     
       
    28     models = {
       
    29         'auth.user': {
       
    30             '_stub': True,
       
    31             'id': ('models.AutoField', [], {'primary_key': 'True'})
       
    32         },
       
    33         'registration.wifi': {
       
    34             'id': ('models.AutoField', [], {'primary_key': 'True'}),
       
    35             'user': ('models.ForeignKey', ['User'], {}),
       
    36             'wifi': ('models.CharField', [], {'max_length': '50'})
       
    37         },
       
    38         'registration.registration': {
       
    39             'allow_contact': ('models.BooleanField', [], {'default': 'False'}),
       
    40             'amount': ('models.IntegerField', [], {'default': '0'}),
       
    41             'beverage': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    42             'city': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    43             'diet': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    44             'discount': ('models.BooleanField', [], {'default': 'False'}),
       
    45             'id': ('models.AutoField', [], {'primary_key': 'True'}),
       
    46             'last_mod': ('models.DateTimeField', [], {'auto_now': 'True'}),
       
    47             'occupation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    48             'organisation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    49             'party': ('models.BooleanField', [], {'default': 'False'}),
       
    50             'payment': ('models.BooleanField', [], {'default': 'False'}),
       
    51             'postcode': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    52             'registrant': ('models.ForeignKey', ['User'], {}),
       
    53             'slug': ('models.SlugField', [], {}),
       
    54             'sponsor': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
       
    55             'submitted': ('models.DateTimeField', [], {'auto_now_add': 'True'}),
       
    56             'tshirt': ('models.CharField', [], {'max_length': '2'})
       
    57         }
       
    58     }
       
    59     
       
    60     complete_apps = ['registration']