Revision 63244bd1

View differences:

crm/.gitignore
1
*.pyc
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']
crm/robocrm/models.py
28 28
  cell = models.DecimalField(max_digits=10, decimal_places=0, blank=True, null=True)
29 29

  
30 30
  # Class Level
31
  FRESHMAN = 'FR'
32
  SOPHOMORE = 'SO'
33
  JUNIOR = 'JR'
34
  SENIOR = 'SR'
35
  MASTERS = 'MS'
36
  DOCTORAL = 'DR'
31
  UNDERGRAD = 'UG'
32
  GRADUATE = 'GR'
33
  AFFILIATE = 'AF'
34
  OTHER = 'OH'
37 35
  CLASS_LEVEL_CHOICES = (
38
      (FRESHMAN, 'Freshman'),
39
      (SOPHOMORE, 'Sophomore'),
40
      (JUNIOR, 'Junior'),
41
      (SENIOR, 'Senior'),
42
      (MASTERS, 'Masters'),
43
      (DOCTORAL, 'Doctoral'),
36
	(UNDERGRAD, 'Undergraduate'),
37
	(GRADUATE, 'Graduate Student'),
38
	(AFFILIATE, 'Non-Student CMU Affiliate'),
39
	(OTHER, 'Other User'),
44 40
  )
45 41
  class_level = models.CharField(max_length=2, 
46 42
                                 choices=CLASS_LEVEL_CHOICES,
47
                                 default=FRESHMAN)
43
                                 default=UNDERGRAD)
48 44

  
49 45
  # Graduation Year
50
  grad_year = models.DecimalField(max_digits=4, decimal_places=0)
46
  #grad_year = models.DecimalField(max_digits=4, decimal_places=0)
47
  grad_year = models.IntegerField(blank=True, null=True)
51 48

  
52 49
  # Primary and Secondary Major/Minors
53 50
  major = models.CharField(max_length=20)
......
68 65
                               default=JUNIOR_MEM)
69 66
  
70 67
  # Roboclub Transaction Info
71
  dues_paid = models.DateField()
68
  dues_paid = models.DateField(blank=True, null=True)
72 69
  tshirt_rec = models.BooleanField(default=False)
73 70
  
74 71
  # Shop and E-Bench Status

Also available in: Unified diff