Revision 51fc4957

View differences:

crm/robocrm/migrations/0001_initial.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        pass
12

  
13
    def backwards(self, orm):
14
        pass
15

  
16
    models = {
17
        
18
    }
19

  
20
    complete_apps = ['robocrm']
crm/robocrm/migrations/0002_auto__add_machine__add_robouser__add_project__add_roboresource__add_ev.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding model 'Machine'
12
        db.create_table('robocrm_machine', (
13
            ('type', self.gf('django.db.models.fields.CharField')(max_length=20)),
14
            ('id', self.gf('django.db.models.fields.CharField')(max_length=10, primary_key=True)),
15
            ('maint', self.gf('django.db.models.fields.BooleanField')(default=False)),
16
            ('dstart', self.gf('django.db.models.fields.DateTimeField')()),
17
            ('dend', self.gf('django.db.models.fields.DateTimeField')()),
18
        ))
19
        db.send_create_signal('robocrm', ['Machine'])
20

  
21
        # Adding model 'RoboUser'
22
        db.create_table('robocrm_robouser', (
23
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
24
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
25
            ('rfid', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=0)),
26
            ('cell', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=0)),
27
            ('class_level', self.gf('django.db.models.fields.CharField')(default='FR', max_length=2)),
28
            ('grad_year', self.gf('django.db.models.fields.DecimalField')(max_digits=4, decimal_places=0)),
29
            ('major', self.gf('django.db.models.fields.CharField')(max_length=20)),
30
            ('sec_major_one', self.gf('django.db.models.fields.CharField')(max_length=20)),
31
            ('sec_major_two', self.gf('django.db.models.fields.CharField')(max_length=20)),
32
            ('club_rank', self.gf('django.db.models.fields.CharField')(default='JM', max_length=2)),
33
            ('dues_paid', self.gf('django.db.models.fields.DateField')()),
34
            ('tshirt_rec', self.gf('django.db.models.fields.BooleanField')(default=False)),
35
            ('bench_status', self.gf('django.db.models.fields.CharField')(default='GD', max_length=2)),
36
            ('shop_status', self.gf('django.db.models.fields.CharField')(default='GD', max_length=2)),
37
        ))
38
        db.send_create_signal('robocrm', ['RoboUser'])
39

  
40
        # Adding M2M table for field machines on 'RoboUser'
41
        db.create_table('robocrm_robouser_machines', (
42
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
43
            ('robouser', models.ForeignKey(orm['robocrm.robouser'], null=False)),
44
            ('machine', models.ForeignKey(orm['robocrm.machine'], null=False))
45
        ))
46
        db.create_unique('robocrm_robouser_machines', ['robouser_id', 'machine_id'])
47

  
48
        # Adding model 'Project'
49
        db.create_table('robocrm_project', (
50
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
51
            ('name', self.gf('django.db.models.fields.CharField')(max_length=30)),
52
            ('primuser', self.gf('django.db.models.fields.related.ForeignKey')(related_name='pri+', to=orm['robocrm.RoboUser'])),
53
            ('charge', self.gf('django.db.models.fields.BooleanField')(default=False)),
54
        ))
55
        db.send_create_signal('robocrm', ['Project'])
56

  
57
        # Adding M2M table for field users on 'Project'
58
        db.create_table('robocrm_project_users', (
59
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
60
            ('project', models.ForeignKey(orm['robocrm.project'], null=False)),
61
            ('robouser', models.ForeignKey(orm['robocrm.robouser'], null=False))
62
        ))
63
        db.create_unique('robocrm_project_users', ['project_id', 'robouser_id'])
64

  
65
        # Adding model 'RoboResource'
66
        db.create_table('robocrm_roboresource', (
67
            ('type', self.gf('django.db.models.fields.CharField')(max_length=30)),
68
            ('id', self.gf('django.db.models.fields.CharField')(max_length=20, primary_key=True)),
69
            ('checked_out', self.gf('django.db.models.fields.BooleanField')(default=False)),
70
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='u+', to=orm['robocrm.RoboUser'])),
71
            ('time_out', self.gf('django.db.models.fields.DateTimeField')()),
72
            ('time_due', self.gf('django.db.models.fields.DateTimeField')()),
73
            ('officer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='o+', to=orm['robocrm.RoboUser'])),
74
        ))
75
        db.send_create_signal('robocrm', ['RoboResource'])
76

  
77
        # Adding model 'Event'
78
        db.create_table('robocrm_event', (
79
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
80
            ('type', self.gf('django.db.models.fields.CharField')(max_length=30)),
81
            ('tstart', self.gf('django.db.models.fields.DateTimeField')()),
82
            ('tend', self.gf('django.db.models.fields.DateTimeField')()),
83
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['robocrm.RoboUser'])),
84
            ('succ', self.gf('django.db.models.fields.BooleanField')(default=False)),
85
            ('imgurl', self.gf('django.db.models.fields.URLField')(max_length=200)),
86
            ('machine', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['robocrm.Machine'])),
87
            ('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['robocrm.Project'])),
88
            ('matuse', self.gf('django.db.models.fields.TextField')()),
89
        ))
90
        db.send_create_signal('robocrm', ['Event'])
91

  
92

  
93
    def backwards(self, orm):
94
        # Deleting model 'Machine'
95
        db.delete_table('robocrm_machine')
96

  
97
        # Deleting model 'RoboUser'
98
        db.delete_table('robocrm_robouser')
99

  
100
        # Removing M2M table for field machines on 'RoboUser'
101
        db.delete_table('robocrm_robouser_machines')
102

  
103
        # Deleting model 'Project'
104
        db.delete_table('robocrm_project')
105

  
106
        # Removing M2M table for field users on 'Project'
107
        db.delete_table('robocrm_project_users')
108

  
109
        # Deleting model 'RoboResource'
110
        db.delete_table('robocrm_roboresource')
111

  
112
        # Deleting model 'Event'
113
        db.delete_table('robocrm_event')
114

  
115

  
116
    models = {
117
        'auth.group': {
118
            'Meta': {'object_name': 'Group'},
119
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
120
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
121
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
122
        },
123
        'auth.permission': {
124
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
125
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
126
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
127
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
128
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
129
        },
130
        'auth.user': {
131
            'Meta': {'object_name': 'User'},
132
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
133
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
134
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
135
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
136
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
137
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
138
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
139
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
140
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
141
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
142
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
143
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
144
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
145
        },
146
        'contenttypes.contenttype': {
147
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
148
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
149
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
150
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
151
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
152
        },
153
        'robocrm.event': {
154
            'Meta': {'object_name': 'Event'},
155
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
156
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
157
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
158
            'matuse': ('django.db.models.fields.TextField', [], {}),
159
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
160
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
162
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
163
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
164
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
165
        },
166
        'robocrm.machine': {
167
            'Meta': {'object_name': 'Machine'},
168
            'dend': ('django.db.models.fields.DateTimeField', [], {}),
169
            'dstart': ('django.db.models.fields.DateTimeField', [], {}),
170
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
171
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
172
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
173
        },
174
        'robocrm.project': {
175
            'Meta': {'object_name': 'Project'},
176
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
177
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
178
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
179
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
180
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
181
        },
182
        'robocrm.roboresource': {
183
            'Meta': {'object_name': 'RoboResource'},
184
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
185
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
186
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'to': "orm['robocrm.RoboUser']"}),
187
            'time_due': ('django.db.models.fields.DateTimeField', [], {}),
188
            'time_out': ('django.db.models.fields.DateTimeField', [], {}),
189
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
190
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'to': "orm['robocrm.RoboUser']"})
191
        },
192
        'robocrm.robouser': {
193
            'Meta': {'object_name': 'RoboUser'},
194
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
195
            'cell': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '0'}),
196
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'FR'", 'max_length': '2'}),
197
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
198
            'dues_paid': ('django.db.models.fields.DateField', [], {}),
199
            'grad_year': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '0'}),
200
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
201
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['robocrm.Machine']", 'symmetrical': 'False'}),
202
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
203
            'rfid': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '0'}),
204
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
205
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
206
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
207
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
208
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
209
        }
210
    }
211

  
212
    complete_apps = ['robocrm']
crm/robocrm/migrations/0003_auto__chg_field_machine_dstart__chg_field_machine_dend__chg_field_robo.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'Machine.dstart'
13
        db.alter_column('robocrm_machine', 'dstart', self.gf('django.db.models.fields.DateTimeField')(null=True))
14

  
15
        # Changing field 'Machine.dend'
16
        db.alter_column('robocrm_machine', 'dend', self.gf('django.db.models.fields.DateTimeField')(null=True))
17

  
18
        # Changing field 'RoboResource.time_due'
19
        db.alter_column('robocrm_roboresource', 'time_due', self.gf('django.db.models.fields.DateTimeField')(null=True))
20

  
21
        # Changing field 'RoboResource.time_out'
22
        db.alter_column('robocrm_roboresource', 'time_out', self.gf('django.db.models.fields.DateTimeField')(null=True))
23

  
24
    def backwards(self, orm):
25

  
26
        # Changing field 'Machine.dstart'
27
        db.alter_column('robocrm_machine', 'dstart', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 1, 5, 0, 0)))
28

  
29
        # Changing field 'Machine.dend'
30
        db.alter_column('robocrm_machine', 'dend', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 1, 5, 0, 0)))
31

  
32
        # Changing field 'RoboResource.time_due'
33
        db.alter_column('robocrm_roboresource', 'time_due', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2013, 1, 5, 0, 0)))
34

  
35
        # User chose to not deal with backwards NULL issues for 'RoboResource.time_out'
36
        raise RuntimeError("Cannot reverse this migration. 'RoboResource.time_out' and its values cannot be restored.")
37

  
38
    models = {
39
        'auth.group': {
40
            'Meta': {'object_name': 'Group'},
41
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
43
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
44
        },
45
        'auth.permission': {
46
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
47
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
48
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
49
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
51
        },
52
        'auth.user': {
53
            'Meta': {'object_name': 'User'},
54
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
55
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
56
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
57
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
58
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
60
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
63
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
64
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
65
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
66
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
67
        },
68
        'contenttypes.contenttype': {
69
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
70
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
71
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
73
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
74
        },
75
        'robocrm.event': {
76
            'Meta': {'object_name': 'Event'},
77
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
79
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
80
            'matuse': ('django.db.models.fields.TextField', [], {}),
81
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
82
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
84
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
85
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
86
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
87
        },
88
        'robocrm.machine': {
89
            'Meta': {'object_name': 'Machine'},
90
            'dend': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
91
            'dstart': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
93
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
95
        },
96
        'robocrm.project': {
97
            'Meta': {'object_name': 'Project'},
98
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
101
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
102
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
103
        },
104
        'robocrm.roboresource': {
105
            'Meta': {'object_name': 'RoboResource'},
106
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
108
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"}),
109
            'time_due': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
110
            'time_out': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
111
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
112
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"})
113
        },
114
        'robocrm.robouser': {
115
            'Meta': {'object_name': 'RoboUser'},
116
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
117
            'cell': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
118
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'FR'", 'max_length': '2'}),
119
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
120
            'dues_paid': ('django.db.models.fields.DateField', [], {}),
121
            'grad_year': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '0'}),
122
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
123
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['robocrm.Machine']", 'symmetrical': 'False'}),
124
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
125
            'rfid': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
126
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
127
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
128
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
129
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
131
        }
132
    }
133

  
134
    complete_apps = ['robocrm']
crm/robocrm/migrations/0004_auto__chg_field_robouser_sec_major_one__chg_field_robouser_cell__chg_f.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'RoboUser.sec_major_one'
13
        db.alter_column('robocrm_robouser', 'sec_major_one', self.gf('django.db.models.fields.CharField')(max_length=20, null=True))
14

  
15
        # Changing field 'RoboUser.cell'
16
        db.alter_column('robocrm_robouser', 'cell', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=10, decimal_places=0))
17

  
18
        # Changing field 'RoboUser.sec_major_two'
19
        db.alter_column('robocrm_robouser', 'sec_major_two', self.gf('django.db.models.fields.CharField')(max_length=20, null=True))
20

  
21
    def backwards(self, orm):
22

  
23
        # Changing field 'RoboUser.sec_major_one'
24
        db.alter_column('robocrm_robouser', 'sec_major_one', self.gf('django.db.models.fields.CharField')(default='', max_length=20))
25

  
26
        # User chose to not deal with backwards NULL issues for 'RoboUser.cell'
27
        raise RuntimeError("Cannot reverse this migration. 'RoboUser.cell' and its values cannot be restored.")
28

  
29
        # Changing field 'RoboUser.sec_major_two'
30
        db.alter_column('robocrm_robouser', 'sec_major_two', self.gf('django.db.models.fields.CharField')(default='', max_length=20))
31

  
32
    models = {
33
        'auth.group': {
34
            'Meta': {'object_name': 'Group'},
35
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
37
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
38
        },
39
        'auth.permission': {
40
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
41
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
42
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
43
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
45
        },
46
        'auth.user': {
47
            'Meta': {'object_name': 'User'},
48
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
49
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
50
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
51
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
52
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
54
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
55
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
57
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
58
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
59
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
60
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
61
        },
62
        'contenttypes.contenttype': {
63
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
64
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
65
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
68
        },
69
        'robocrm.event': {
70
            'Meta': {'object_name': 'Event'},
71
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
73
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
74
            'matuse': ('django.db.models.fields.TextField', [], {}),
75
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
76
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
78
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
79
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
80
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
81
        },
82
        'robocrm.machine': {
83
            'Meta': {'object_name': 'Machine'},
84
            'dend': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
85
            'dstart': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
86
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
87
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
89
        },
90
        'robocrm.project': {
91
            'Meta': {'object_name': 'Project'},
92
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
95
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
96
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
97
        },
98
        'robocrm.roboresource': {
99
            'Meta': {'object_name': 'RoboResource'},
100
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
102
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"}),
103
            'time_due': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
104
            'time_out': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
105
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
106
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"})
107
        },
108
        'robocrm.robouser': {
109
            'Meta': {'object_name': 'RoboUser'},
110
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
111
            'cell': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
112
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'FR'", 'max_length': '2'}),
113
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
114
            'dues_paid': ('django.db.models.fields.DateField', [], {}),
115
            'grad_year': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '0'}),
116
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['robocrm.Machine']", 'symmetrical': 'False'}),
118
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
119
            'rfid': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
120
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
121
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
122
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
123
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
125
        }
126
    }
127

  
128
    complete_apps = ['robocrm']
crm/robocrm/migrations/0005_auto__chg_field_robouser_rfid.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'RoboUser.rfid'
13
        db.alter_column('robocrm_robouser', 'rfid', self.gf('django.db.models.fields.CharField')(max_length=10))
14

  
15
    def backwards(self, orm):
16

  
17
        # Changing field 'RoboUser.rfid'
18
        db.alter_column('robocrm_robouser', 'rfid', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=0))
19

  
20
    models = {
21
        'auth.group': {
22
            'Meta': {'object_name': 'Group'},
23
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
25
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
26
        },
27
        'auth.permission': {
28
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
29
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
30
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
31
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
33
        },
34
        'auth.user': {
35
            'Meta': {'object_name': 'User'},
36
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
37
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
38
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
39
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
42
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
45
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
47
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
48
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
49
        },
50
        'contenttypes.contenttype': {
51
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
52
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
56
        },
57
        'robocrm.event': {
58
            'Meta': {'object_name': 'Event'},
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
61
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
62
            'matuse': ('django.db.models.fields.TextField', [], {}),
63
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
64
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
66
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
67
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
68
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
69
        },
70
        'robocrm.machine': {
71
            'Meta': {'object_name': 'Machine'},
72
            'dend': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
73
            'dstart': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
74
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
75
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
77
        },
78
        'robocrm.project': {
79
            'Meta': {'object_name': 'Project'},
80
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
83
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
84
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
85
        },
86
        'robocrm.roboresource': {
87
            'Meta': {'object_name': 'RoboResource'},
88
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
90
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"}),
91
            'time_due': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92
            'time_out': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
93
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
94
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"})
95
        },
96
        'robocrm.robouser': {
97
            'Meta': {'object_name': 'RoboUser'},
98
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
99
            'cell': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
100
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'FR'", 'max_length': '2'}),
101
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
102
            'dues_paid': ('django.db.models.fields.DateField', [], {}),
103
            'grad_year': ('django.db.models.fields.DecimalField', [], {'max_digits': '4', 'decimal_places': '0'}),
104
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['robocrm.Machine']", 'null': 'True', 'blank': 'True'}),
106
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
107
            'rfid': ('django.db.models.fields.CharField', [], {'default': '0', 'max_length': '10', 'blank': 'True'}),
108
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
109
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
110
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
111
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
113
        }
114
    }
115

  
116
    complete_apps = ['robocrm']
crm/robocrm/migrations/0006_auto__chg_field_robouser_grad_year.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'RoboUser.grad_year'
13
        db.alter_column('robocrm_robouser', 'grad_year', self.gf('django.db.models.fields.IntegerField')())
14

  
15
    def backwards(self, orm):
16

  
17
        # Changing field 'RoboUser.grad_year'
18
        db.alter_column('robocrm_robouser', 'grad_year', self.gf('django.db.models.fields.DecimalField')(max_digits=4, decimal_places=0))
19

  
20
    models = {
21
        'auth.group': {
22
            'Meta': {'object_name': 'Group'},
23
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
25
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
26
        },
27
        'auth.permission': {
28
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
29
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
30
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
31
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
33
        },
34
        'auth.user': {
35
            'Meta': {'object_name': 'User'},
36
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
37
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
38
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
39
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
42
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
45
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
47
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
48
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
49
        },
50
        'contenttypes.contenttype': {
51
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
52
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
56
        },
57
        'robocrm.event': {
58
            'Meta': {'object_name': 'Event'},
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
61
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
62
            'matuse': ('django.db.models.fields.TextField', [], {}),
63
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
64
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
66
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
67
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
68
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
69
        },
70
        'robocrm.machine': {
71
            'Meta': {'object_name': 'Machine'},
72
            'dend': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
73
            'dstart': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
74
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
75
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
77
        },
78
        'robocrm.project': {
79
            'Meta': {'object_name': 'Project'},
80
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
83
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
84
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
85
        },
86
        'robocrm.roboresource': {
87
            'Meta': {'object_name': 'RoboResource'},
88
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
90
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"}),
91
            'time_due': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92
            'time_out': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
93
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
94
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"})
95
        },
96
        'robocrm.robouser': {
97
            'Meta': {'object_name': 'RoboUser'},
98
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
99
            'cell': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
100
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'UG'", 'max_length': '2'}),
101
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
102
            'dues_paid': ('django.db.models.fields.DateField', [], {}),
103
            'grad_year': ('django.db.models.fields.IntegerField', [], {}),
104
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['robocrm.Machine']", 'null': 'True', 'blank': 'True'}),
106
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
107
            'rfid': ('django.db.models.fields.CharField', [], {'default': '0', 'max_length': '10', 'blank': 'True'}),
108
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
109
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
110
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
111
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
113
        }
114
    }
115

  
116
    complete_apps = ['robocrm']
crm/robocrm/migrations/0007_auto__chg_field_robouser_grad_year.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'RoboUser.grad_year'
13
        db.alter_column('robocrm_robouser', 'grad_year', self.gf('django.db.models.fields.IntegerField')(null=True))
14

  
15
    def backwards(self, orm):
16

  
17
        # Changing field 'RoboUser.grad_year'
18
        db.alter_column('robocrm_robouser', 'grad_year', self.gf('django.db.models.fields.IntegerField')(default=2013))
19

  
20
    models = {
21
        'auth.group': {
22
            'Meta': {'object_name': 'Group'},
23
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
25
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
26
        },
27
        'auth.permission': {
28
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
29
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
30
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
31
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
33
        },
34
        'auth.user': {
35
            'Meta': {'object_name': 'User'},
36
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
37
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
38
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
39
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
42
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
45
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
47
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
48
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
49
        },
50
        'contenttypes.contenttype': {
51
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
52
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
56
        },
57
        'robocrm.event': {
58
            'Meta': {'object_name': 'Event'},
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
61
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
62
            'matuse': ('django.db.models.fields.TextField', [], {}),
63
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
64
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
66
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
67
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
68
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
69
        },
70
        'robocrm.machine': {
71
            'Meta': {'object_name': 'Machine'},
72
            'dend': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
73
            'dstart': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
74
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
75
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
77
        },
78
        'robocrm.project': {
79
            'Meta': {'object_name': 'Project'},
80
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
83
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
84
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
85
        },
86
        'robocrm.roboresource': {
87
            'Meta': {'object_name': 'RoboResource'},
88
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
90
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"}),
91
            'time_due': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92
            'time_out': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
93
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
94
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"})
95
        },
96
        'robocrm.robouser': {
97
            'Meta': {'object_name': 'RoboUser'},
98
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
99
            'cell': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
100
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'UG'", 'max_length': '2'}),
101
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
102
            'dues_paid': ('django.db.models.fields.DateField', [], {}),
103
            'grad_year': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
104
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['robocrm.Machine']", 'null': 'True', 'blank': 'True'}),
106
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
107
            'rfid': ('django.db.models.fields.CharField', [], {'default': '0', 'max_length': '10', 'blank': 'True'}),
108
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
109
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
110
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
111
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
113
        }
114
    }
115

  
116
    complete_apps = ['robocrm']
crm/robocrm/migrations/0008_auto__chg_field_robouser_dues_paid.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'RoboUser.dues_paid'
13
        db.alter_column('robocrm_robouser', 'dues_paid', self.gf('django.db.models.fields.DateField')(null=True))
14

  
15
    def backwards(self, orm):
16

  
17
        # Changing field 'RoboUser.dues_paid'
18
        db.alter_column('robocrm_robouser', 'dues_paid', self.gf('django.db.models.fields.DateField')(default=datetime.datetime(2013, 1, 27, 0, 0)))
19

  
20
    models = {
21
        'auth.group': {
22
            'Meta': {'object_name': 'Group'},
23
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
25
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
26
        },
27
        'auth.permission': {
28
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
29
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
30
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
31
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
33
        },
34
        'auth.user': {
35
            'Meta': {'object_name': 'User'},
36
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
37
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
38
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
39
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
42
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
45
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
47
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
48
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
49
        },
50
        'contenttypes.contenttype': {
51
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
52
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
56
        },
57
        'robocrm.event': {
58
            'Meta': {'object_name': 'Event'},
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'imgurl': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
61
            'machine': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Machine']"}),
62
            'matuse': ('django.db.models.fields.TextField', [], {}),
63
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.Project']"}),
64
            'succ': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'tend': ('django.db.models.fields.DateTimeField', [], {}),
66
            'tstart': ('django.db.models.fields.DateTimeField', [], {}),
67
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
68
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['robocrm.RoboUser']"})
69
        },
70
        'robocrm.machine': {
71
            'Meta': {'object_name': 'Machine'},
72
            'dend': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
73
            'dstart': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
74
            'id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'primary_key': 'True'}),
75
            'maint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'type': ('django.db.models.fields.CharField', [], {'max_length': '20'})
77
        },
78
        'robocrm.project': {
79
            'Meta': {'object_name': 'Project'},
80
            'charge': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
83
            'primuser': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pri+'", 'to': "orm['robocrm.RoboUser']"}),
84
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'u+'", 'symmetrical': 'False', 'to': "orm['robocrm.RoboUser']"})
85
        },
86
        'robocrm.roboresource': {
87
            'Meta': {'object_name': 'RoboResource'},
88
            'checked_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'id': ('django.db.models.fields.CharField', [], {'max_length': '20', 'primary_key': 'True'}),
90
            'officer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'o+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"}),
91
            'time_due': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92
            'time_out': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
93
            'type': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
94
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'u+'", 'blank': 'True', 'to': "orm['robocrm.RoboUser']"})
95
        },
96
        'robocrm.robouser': {
97
            'Meta': {'object_name': 'RoboUser'},
98
            'bench_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
99
            'cell': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '10', 'decimal_places': '0', 'blank': 'True'}),
100
            'class_level': ('django.db.models.fields.CharField', [], {'default': "'UG'", 'max_length': '2'}),
101
            'club_rank': ('django.db.models.fields.CharField', [], {'default': "'JM'", 'max_length': '2'}),
102
            'dues_paid': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
103
            'grad_year': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
104
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'machines': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['robocrm.Machine']", 'null': 'True', 'blank': 'True'}),
106
            'major': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
107
            'rfid': ('django.db.models.fields.CharField', [], {'default': '0', 'max_length': '10', 'blank': 'True'}),
108
            'sec_major_one': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
109
            'sec_major_two': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
110
            'shop_status': ('django.db.models.fields.CharField', [], {'default': "'GD'", 'max_length': '2'}),
111
            'tshirt_rec': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
113
        }
114
    }
115

  
116
    complete_apps = ['robocrm']

Also available in: Unified diff