project/kiwipycon/registration/migrations/0001_initial.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 05 Nov 2009 03:01:40 +0530
changeset 7 ac5a1c60c2bc
parent 1 fda1c66b25f9
permissions -rw-r--r--
Added initial migrates.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
from south.db import db
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
from django.db import models
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
from project.kiwipycon.registration.models import *
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
class Migration:
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
    
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
    def forwards(self, orm):
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
        
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
        # Adding model 'Registration'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
        db.create_table('registration_registration', (
7
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    13
            ('slug', models.SlugField()),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    14
            ('registrant', models.ForeignKey(orm['auth.User'])),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    15
            ('organisation', models.CharField(max_length=255, blank=True)),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    16
            ('occupation', models.CharField(max_length=255, blank=True)),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
            ('city', models.CharField(max_length=255, blank=True)),
7
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    18
            ('postcode', models.CharField(max_length=255, blank=True)),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    19
            ('tshirt', models.CharField(max_length=2)),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    20
            ('conference', models.BooleanField(default=False)),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    21
            ('tutorial', models.BooleanField(default=False)),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    22
            ('sprint', models.BooleanField(default=False)),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
            ('submitted', models.DateTimeField(auto_now_add=True)),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
            ('allow_contact', models.BooleanField(default=False)),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
            ('last_mod', models.DateTimeField(auto_now=True)),
7
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    26
            ('id', models.AutoField(primary_key=True)),            
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
        ))
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
        db.send_create_signal('registration', ['Registration'])
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
        
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
    
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
    
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
    def backwards(self, orm):
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
        
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
        # Deleting model 'Registration'
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
        db.delete_table('registration_registration')
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
        
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
    
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
    
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
    models = {
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
        'auth.user': {
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
            '_stub': True,
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
            'id': ('models.AutoField', [], {'primary_key': 'True'})
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
        },
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
        'registration.registration': {
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
            'allow_contact': ('models.BooleanField', [], {'default': 'False'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
            'city': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
            'last_mod': ('models.DateTimeField', [], {'auto_now': 'True'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
            'occupation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
            'organisation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
7
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    51
            'conference': ('models.BooleanField', [], {'default': 'False'}),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    52
            'tutorial': ('models.BooleanField', [], {'default': 'False'}),
ac5a1c60c2bc Added initial migrates.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 1
diff changeset
    53
            'sprint': ('models.BooleanField', [], {'default': 'False'}),
1
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
            'postcode': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
            'registrant': ('models.ForeignKey', ['User'], {}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
            'slug': ('models.SlugField', [], {}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
            'submitted': ('models.DateTimeField', [], {'auto_now_add': 'True'}),
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
            'tshirt': ('models.CharField', [], {'max_length': '2'})
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
        }
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    60
    }
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    61
    
fda1c66b25f9 Added all the files from kiwipycon and the changes made for SciPy.in.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
    complete_apps = ['registration']