Project

General

Profile

Download (44.3 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / dossiers / migrations / 0009_auto__chg_field_filestate_previous_state__chg_field_patientrecord_size.py @ 54318d2c

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 'FileState.previous_state'
13
        db.alter_column(u'dossiers_filestate', 'previous_state_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dossiers.FileState'], null=True, on_delete=models.SET_NULL))
14

    
15
        # Changing field 'PatientRecord.size'
16
        db.alter_column(u'dossiers_patientrecord', 'size', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=5, decimal_places=1))
17

    
18
        # Changing field 'PatientRecord.last_state'
19
        db.alter_column(u'dossiers_patientrecord', 'last_state_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, on_delete=models.SET_NULL, to=orm['dossiers.FileState']))
20

    
21
        # Changing field 'PatientRecord.policyholder'
22
        db.alter_column(u'dossiers_patientrecord', 'policyholder_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, on_delete=models.SET_NULL, to=orm['dossiers.PatientContact']))
23

    
24
    def backwards(self, orm):
25

    
26
        # Changing field 'FileState.previous_state'
27
        db.alter_column(u'dossiers_filestate', 'previous_state_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dossiers.FileState'], null=True))
28

    
29
        # Changing field 'PatientRecord.size'
30
        db.alter_column(u'dossiers_patientrecord', 'size', self.gf('django.db.models.fields.IntegerField')(null=True))
31

    
32
        # Changing field 'PatientRecord.last_state'
33
        db.alter_column(u'dossiers_patientrecord', 'last_state_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['dossiers.FileState']))
34

    
35
        # Changing field 'PatientRecord.policyholder'
36
        db.alter_column(u'dossiers_patientrecord', 'policyholder_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['dossiers.PatientContact']))
37

    
38
    models = {
39
        u'auth.group': {
40
            'Meta': {'object_name': 'Group'},
41
            u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
44
        },
45
        u'auth.permission': {
46
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
47
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
48
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
49
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
51
        },
52
        u'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': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
58
            u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
66
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
67
        },
68
        u'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
            u'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
        'dossiers.cmpphealthcarediagnostic': {
76
            'Meta': {'object_name': 'CmppHealthCareDiagnostic', '_ormbases': ['dossiers.HealthCare']},
77
            'act_number': ('django.db.models.fields.IntegerField', [], {'default': '6'}),
78
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
79
            u'healthcare_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.HealthCare']", 'unique': 'True', 'primary_key': 'True'})
80
        },
81
        'dossiers.cmpphealthcaretreatment': {
82
            'Meta': {'object_name': 'CmppHealthCareTreatment', '_ormbases': ['dossiers.HealthCare']},
83
            'act_number': ('django.db.models.fields.IntegerField', [], {'default': '30'}),
84
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
85
            u'healthcare_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.HealthCare']", 'unique': 'True', 'primary_key': 'True'}),
86
            'prolongation': ('django.db.models.fields.IntegerField', [], {'default': '0'})
87
        },
88
        'dossiers.filestate': {
89
            'Meta': {'object_name': 'FileState'},
90
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
91
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
92
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
93
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
94
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
96
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
97
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
98
        },
99
        'dossiers.healthcare': {
100
            'Meta': {'object_name': 'HealthCare'},
101
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
102
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
103
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
104
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
105
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
107
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
108
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
109
            'start_date': ('django.db.models.fields.DateField', [], {})
110
        },
111
        u'dossiers.patientaddress': {
112
            'Meta': {'object_name': 'PatientAddress'},
113
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
114
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
115
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
116
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
117
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
118
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
120
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
121
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
123
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
124
        },
125
        u'dossiers.patientcontact': {
126
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'PatientContact', '_ormbases': [u'personnes.People']},
127
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
128
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
129
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
130
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
131
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
132
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
133
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
134
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
135
            'management_code': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ManagementCode']", 'null': 'True', 'blank': 'True'}),
136
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
137
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
138
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
139
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
140
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
141
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
142
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
143
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
144
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
145
        },
146
        u'dossiers.patientrecord': {
147
            'Meta': {'object_name': 'PatientRecord', '_ormbases': [u'dossiers.PatientContact']},
148
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
149
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
150
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
151
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
152
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
153
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
154
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
155
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
156
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': u"orm['dossiers.PatientContact']"}),
157
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
158
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
159
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
160
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
161
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
162
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
163
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
164
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
165
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
166
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
167
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
168
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['dossiers.FileState']"}),
169
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHRequest']"}),
170
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHResponse']"}),
171
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
172
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
173
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
174
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
175
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
176
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
177
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
178
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
179
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
180
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
181
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
182
            u'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
183
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
184
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['dossiers.PatientContact']"}),
185
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
186
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
187
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
188
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
189
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
190
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
191
            'size': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '1', 'blank': 'True'}),
192
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': u"orm['ressources.SocialisationDuration']"}),
193
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
194
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
195
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
196
        },
197
        'dossiers.sessadhealthcarenotification': {
198
            'Meta': {'object_name': 'SessadHealthCareNotification', '_ormbases': ['dossiers.HealthCare']},
199
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
200
            u'healthcare_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.HealthCare']", 'unique': 'True', 'primary_key': 'True'})
201
        },
202
        'dossiers.status': {
203
            'Meta': {'object_name': 'Status'},
204
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
206
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'}),
207
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
208
        },
209
        u'dossiers.transportprescriptionlog': {
210
            'Meta': {'object_name': 'TransportPrescriptionLog'},
211
            'choices': ('django.db.models.fields.CharField', [], {'max_length': '4096', 'null': 'True', 'blank': 'True'}),
212
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
213
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
214
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"})
215
        },
216
        u'personnes.externaltherapist': {
217
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalTherapist', '_ormbases': [u'personnes.People']},
218
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
219
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
220
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
221
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
222
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
223
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
224
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
225
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
226
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
227
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
228
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
229
        },
230
        u'personnes.externalworker': {
231
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalWorker', '_ormbases': [u'personnes.People']},
232
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
233
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
234
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
235
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
236
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
237
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
238
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
239
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
240
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
241
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
242
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
243
        },
244
        u'personnes.people': {
245
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'People'},
246
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
247
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
248
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
249
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
250
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
251
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
252
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
253
        },
254
        u'personnes.worker': {
255
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'Worker', '_ormbases': [u'personnes.People']},
256
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
257
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
258
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
259
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
260
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
261
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
262
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
263
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
264
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.WorkerType']"})
265
        },
266
        u'ressources.advicegiver': {
267
            'Meta': {'object_name': 'AdviceGiver'},
268
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
269
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
270
        },
271
        u'ressources.analysemotive': {
272
            'Meta': {'object_name': 'AnalyseMotive'},
273
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
274
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
275
        },
276
        u'ressources.codecftmea': {
277
            'Meta': {'ordering': "['ordering_code']", 'object_name': 'CodeCFTMEA'},
278
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
279
            'code': ('django.db.models.fields.IntegerField', [], {}),
280
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
281
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
282
            'ordering_code': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
283
        },
284
        u'ressources.familymotive': {
285
            'Meta': {'object_name': 'FamilyMotive'},
286
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
287
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
288
        },
289
        u'ressources.familysituationtype': {
290
            'Meta': {'object_name': 'FamilySituationType'},
291
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
292
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
293
        },
294
        u'ressources.healthcenter': {
295
            'Meta': {'object_name': 'HealthCenter'},
296
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
297
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
298
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
299
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
300
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
301
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
302
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
303
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
304
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
305
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
306
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
307
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
308
            'hc_invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
309
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
310
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
311
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.LargeRegime']"}),
312
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
313
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
314
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
315
        },
316
        u'ressources.job': {
317
            'Meta': {'object_name': 'Job'},
318
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
319
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
320
        },
321
        u'ressources.largeregime': {
322
            'Meta': {'object_name': 'LargeRegime'},
323
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
324
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
325
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
326
        },
327
        u'ressources.managementcode': {
328
            'Meta': {'object_name': 'ManagementCode'},
329
            'code': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
330
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
331
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
332
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
333
        },
334
        u'ressources.maritalstatustype': {
335
            'Meta': {'object_name': 'MaritalStatusType'},
336
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
337
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
338
        },
339
        u'ressources.mdph': {
340
            'Meta': {'object_name': 'MDPH'},
341
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
342
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
343
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
344
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
345
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
346
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
347
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
348
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
349
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
350
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
351
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
352
        },
353
        u'ressources.mdphrequest': {
354
            'Meta': {'object_name': 'MDPHRequest'},
355
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
356
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
357
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
358
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.MDPH']"}),
359
            'start_date': ('django.db.models.fields.DateField', [], {})
360
        },
361
        u'ressources.mdphresponse': {
362
            'Meta': {'object_name': 'MDPHResponse'},
363
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
364
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
365
            'end_date': ('django.db.models.fields.DateField', [], {}),
366
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
367
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.MDPH']"}),
368
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
369
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
370
            'start_date': ('django.db.models.fields.DateField', [], {}),
371
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
372
        },
373
        u'ressources.outmotive': {
374
            'Meta': {'object_name': 'OutMotive'},
375
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
376
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
377
        },
378
        u'ressources.outto': {
379
            'Meta': {'object_name': 'OutTo'},
380
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
381
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
382
        },
383
        u'ressources.parentalauthoritytype': {
384
            'Meta': {'object_name': 'ParentalAuthorityType'},
385
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
386
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
387
        },
388
        u'ressources.parentalcustodytype': {
389
            'Meta': {'object_name': 'ParentalCustodyType'},
390
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
391
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
392
        },
393
        u'ressources.patientrelatedlink': {
394
            'Meta': {'object_name': 'PatientRelatedLink'},
395
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
396
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
397
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
398
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
399
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
400
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
401
        },
402
        u'ressources.provenance': {
403
            'Meta': {'object_name': 'Provenance'},
404
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
405
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
406
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
407
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
408
        },
409
        u'ressources.school': {
410
            'Meta': {'object_name': 'School'},
411
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
412
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
413
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
414
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
415
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
416
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
417
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
418
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
419
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
420
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
421
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
422
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
423
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.SchoolType']"}),
424
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
425
        },
426
        u'ressources.schoollevel': {
427
            'Meta': {'object_name': 'SchoolLevel'},
428
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
429
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
430
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
431
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
432
        },
433
        u'ressources.schooltype': {
434
            'Meta': {'object_name': 'SchoolType'},
435
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
436
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
437
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'})
438
        },
439
        u'ressources.service': {
440
            'Meta': {'object_name': 'Service'},
441
            'description': ('django.db.models.fields.TextField', [], {}),
442
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
443
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
444
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
445
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
446
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
447
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
448
        },
449
        u'ressources.socialisationduration': {
450
            'Meta': {'object_name': 'SocialisationDuration'},
451
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
452
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
453
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
454
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
455
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
456
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
457
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
458
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
459
            'start_date': ('django.db.models.fields.DateField', [], {})
460
        },
461
        u'ressources.transportcompany': {
462
            'Meta': {'object_name': 'TransportCompany'},
463
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
464
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
465
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
466
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
467
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
468
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
469
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
470
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
471
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
472
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
473
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
474
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
475
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
476
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
477
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
478
        },
479
        u'ressources.transporttype': {
480
            'Meta': {'object_name': 'TransportType'},
481
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
482
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
483
        },
484
        u'ressources.workertype': {
485
            'Meta': {'object_name': 'WorkerType'},
486
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
487
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
488
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
489
        }
490
    }
491

    
492
    complete_apps = ['dossiers']
(9-9/18)