Project

General

Profile

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

calebasse / calebasse / dossiers / migrations / 0003_force_ptientcontact_twinning_rank_1.py @ feffc421

1
# encoding: 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
from calebasse.dossiers.models import PatientContact
8

    
9
class Migration(SchemaMigration):
10

    
11
    def forwards(self, orm):
12
        # Null to 1
13
        contacts = PatientContact.objects.filter(twinning_rank__isnull=True)
14
        contacts.update(twinning_rank=1)
15

    
16
    def backwards(self, orm):
17
        pass
18

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