|
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 ('slug', models.SlugField()), |
|
14 ('registrant', models.ForeignKey(orm['auth.User'])), |
|
15 ('organisation', models.CharField(max_length=255, blank=True)), |
|
16 ('occupation', models.CharField(max_length=255, blank=True)), |
|
17 ('city', models.CharField(max_length=255, blank=True)), |
|
18 ('postcode', models.CharField(max_length=255, blank=True)), |
|
19 ('tshirt', models.CharField(max_length=2)), |
|
20 ('conference', models.BooleanField(default=False)), |
|
21 ('tutorial', models.BooleanField(default=False)), |
|
22 ('sprint', models.BooleanField(default=False)), |
|
23 ('submitted', models.DateTimeField(auto_now_add=True)), |
|
24 ('allow_contact', models.BooleanField(default=False)), |
|
25 ('last_mod', models.DateTimeField(auto_now=True)), |
|
26 ('id', models.AutoField(primary_key=True)), |
|
27 )) |
|
28 db.send_create_signal('registration', ['Registration']) |
|
29 |
|
30 |
|
31 |
|
32 def backwards(self, orm): |
|
33 |
|
34 # Deleting model 'Registration' |
|
35 db.delete_table('registration_registration') |
|
36 |
|
37 |
|
38 |
|
39 models = { |
|
40 'auth.user': { |
|
41 '_stub': True, |
|
42 'id': ('models.AutoField', [], {'primary_key': 'True'}) |
|
43 }, |
|
44 'registration.registration': { |
|
45 'allow_contact': ('models.BooleanField', [], {'default': 'False'}), |
|
46 'city': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}), |
|
47 'id': ('models.AutoField', [], {'primary_key': 'True'}), |
|
48 'last_mod': ('models.DateTimeField', [], {'auto_now': 'True'}), |
|
49 'occupation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}), |
|
50 'organisation': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}), |
|
51 'conference': ('models.BooleanField', [], {'default': 'False'}), |
|
52 'tutorial': ('models.BooleanField', [], {'default': 'False'}), |
|
53 'sprint': ('models.BooleanField', [], {'default': 'False'}), |
|
54 'postcode': ('models.CharField', [], {'max_length': '255', 'blank': 'True'}), |
|
55 'registrant': ('models.ForeignKey', ['User'], {}), |
|
56 'slug': ('models.SlugField', [], {}), |
|
57 'submitted': ('models.DateTimeField', [], {'auto_now_add': 'True'}), |
|
58 'tshirt': ('models.CharField', [], {'max_length': '2'}) |
|
59 } |
|
60 } |
|
61 |
|
62 complete_apps = ['registration'] |