Project

General

Profile

« Previous | Next » 

Revision 017f4158

Added by Mikaël Ates about 9 years ago

Remove old migrations and add Django 1.7 migrations.

View differences:

calebasse/actes/migrations/0001_initial.py
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
class Migration(SchemaMigration):
8
    
9
    def forwards(self, orm):
10
        
11
        # Adding model 'ActValidationState'
12
        db.create_table('actes_actvalidationstate', (
13
            ('state_name', self.gf('django.db.models.fields.CharField')(max_length=150)),
14
            ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
15
            ('auto', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
16
            ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
17
            ('previous_state', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['actes.ActValidationState'], null=True, blank=True)),
18
            ('act', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['actes.Act'])),
19
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
20
        ))
21
        db.send_create_signal('actes', ['ActValidationState'])
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
22 3

  
23
        # Adding model 'Act'
24
        db.create_table('actes_act', (
25
            ('comment', self.gf('django.db.models.fields.TextField')()),
26
            ('valide', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True, blank=True)),
27
            ('act_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.ActType'])),
28
            ('patient', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dossiers.PatientRecord'])),
29
            ('is_billed', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True, blank=True)),
30
            ('healthcare', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dossiers.HealthCare'], null=True, blank=True)),
31
            ('attendance', self.gf('django.db.models.fields.CharField')(default='absent', max_length=16)),
32
            ('switch_billable', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
33
            ('parent_event', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['agenda.Event'], null=True, blank=True)),
34
            ('is_lost', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True, blank=True)),
35
            ('old_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
36
            ('pause', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True, blank=True)),
37
            ('transport_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.TransportType'], null=True, blank=True)),
38
            ('transport_company', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.TransportCompany'], null=True, blank=True)),
39
            ('time', self.gf('django.db.models.fields.TimeField')(default=datetime.time(0, 0), null=True, db_index=True, blank=True)),
40
            ('date', self.gf('django.db.models.fields.DateField')(db_index=True)),
41
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
42
            ('_duration', self.gf('django.db.models.fields.IntegerField')(default=0, null=True, blank=True)),
43
            ('validation_locked', self.gf('django.db.models.fields.BooleanField')(default=False, db_index=True, blank=True)),
44
        ))
45
        db.send_create_signal('actes', ['Act'])
46

  
47
        # Adding M2M table for field doctors on 'Act'
48
        db.create_table('actes_act_doctors', (
49
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
50
            ('act', models.ForeignKey(orm['actes.act'], null=False)),
51
            ('worker', models.ForeignKey(orm['personnes.worker'], null=False))
52
        ))
53
        db.create_unique('actes_act_doctors', ['act_id', 'worker_id'])
4
from django.db import models, migrations
5
import datetime
6
import django.db.models.deletion
7
from django.conf import settings
54 8

  
55
        # Adding model 'ValidationMessage'
56
        db.create_table('actes_validationmessage', (
57
            ('what', self.gf('django.db.models.fields.CharField')(max_length=256)),
58
            ('service', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.Service'], null=True, blank=True)),
59
            ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
60
            ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
61
            ('validation_date', self.gf('django.db.models.fields.DateTimeField')()),
62
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
63
        ))
64
        db.send_create_signal('actes', ['ValidationMessage'])
65
    
66
    
67
    def backwards(self, orm):
68
        
69
        # Deleting model 'ActValidationState'
70
        db.delete_table('actes_actvalidationstate')
71 9

  
72
        # Deleting model 'Act'
73
        db.delete_table('actes_act')
10
class Migration(migrations.Migration):
74 11

  
75
        # Removing M2M table for field doctors on 'Act'
76
        db.delete_table('actes_act_doctors')
12
    dependencies = [
13
        ('ressources', '0001_initial'),
14
        ('agenda', '0001_initial'),
15
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16
        ('personnes', '0001_initial'),
17
        ('dossiers', '0001_initial'),
18
    ]
77 19

  
78
        # Deleting model 'ValidationMessage'
79
        db.delete_table('actes_validationmessage')
80
    
81
    
82
    models = {
83
        'actes.act': {
84
            'Meta': {'object_name': 'Act'},
85
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
86
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.ActType']"}),
87
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
88
            'comment': ('django.db.models.fields.TextField', [], {}),
89
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
90
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['personnes.Worker']", 'symmetrical': 'False'}),
91
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'blank': 'True'}),
92
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
94
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
95
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
96
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.Event']", 'null': 'True', 'blank': 'True'}),
97
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
98
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
99
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
100
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
101
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
102
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
103
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
104
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'})
105
        },
106
        'actes.actvalidationstate': {
107
            'Meta': {'object_name': 'ActValidationState'},
108
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.Act']"}),
109
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
110
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
111
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
112
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
114
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
115
        },
116
        'actes.validationmessage': {
117
            'Meta': {'object_name': 'ValidationMessage'},
118
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
120
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
121
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
122
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
123
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
124
        },
125
        'agenda.event': {
126
            'Meta': {'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
127
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
128
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
129
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
130
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
131
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
132
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.EventType']"}),
133
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
134
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': "orm['agenda.Event']"}),
135
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
136
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
137
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
138
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
139
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
140
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
141
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
142
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
143
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
144
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
145
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
146
            'recurrence_week_rank': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
147
            'room': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Room']", 'null': 'True', 'blank': 'True'}),
148
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
149
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
150
            'title': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
151
        },
152
        'agenda.eventtype': {
153
            'Meta': {'object_name': 'EventType'},
154
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
155
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
156
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
157
        },
158
        'auth.group': {
159
            'Meta': {'object_name': 'Group'},
160
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
162
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
163
        },
164
        'auth.permission': {
165
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
166
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
167
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
168
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
169
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
170
        },
171
        'auth.user': {
172
            'Meta': {'object_name': 'User'},
173
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 5, 14, 55, 44, 671434)'}),
174
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
175
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
176
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
177
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
178
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
179
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
180
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
181
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 5, 14, 55, 44, 671367)'}),
182
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
183
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
184
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
185
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
186
        },
187
        'contenttypes.contenttype': {
188
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
189
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
190
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
191
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
192
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
193
        },
194
        'dossiers.filestate': {
195
            'Meta': {'object_name': 'FileState'},
196
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
197
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
198
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
199
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
200
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
201
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
202
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'blank': 'True'}),
203
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
204
        },
205
        'dossiers.healthcare': {
206
            'Meta': {'object_name': 'HealthCare'},
207
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
208
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
209
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
210
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
211
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
212
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
213
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
214
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
215
            'start_date': ('django.db.models.fields.DateField', [], {})
216
        },
217
        'dossiers.patientaddress': {
218
            'Meta': {'object_name': 'PatientAddress'},
219
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
220
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
221
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
222
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
223
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
224
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
225
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
226
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
227
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
228
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
229
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
230
        },
231
        'dossiers.patientcontact': {
232
            'Meta': {'object_name': 'PatientContact', '_ormbases': ['personnes.People']},
233
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
234
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
235
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
236
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
237
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
238
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
239
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
240
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
241
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
242
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
243
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
244
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
245
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
246
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
247
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
248
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
249
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
250
        },
251
        'dossiers.patientrecord': {
252
            'Meta': {'object_name': 'PatientRecord', '_ormbases': ['dossiers.PatientContact']},
253
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
254
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
255
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
256
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
257
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
258
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
259
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
260
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
261
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': "orm['dossiers.PatientContact']"}),
262
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
263
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
264
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
265
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
266
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
267
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
268
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
269
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
270
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
271
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
272
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
273
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.FileState']"}),
274
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHRequest']"}),
275
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHResponse']"}),
276
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
277
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
278
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
279
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
280
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
281
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
282
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
283
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
284
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
285
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
286
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
287
            'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
288
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
289
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.PatientContact']"}),
290
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
291
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
292
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
293
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
294
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
295
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
296
            'size': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
297
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': "orm['ressources.SocialisationDuration']"}),
298
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
299
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
300
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
301
        },
302
        'dossiers.status': {
303
            'Meta': {'object_name': 'Status'},
304
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
305
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
306
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'}),
307
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
308
        },
309
        'personnes.externaltherapist': {
310
            'Meta': {'object_name': 'ExternalTherapist', '_ormbases': ['personnes.People']},
311
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
312
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
313
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
314
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
315
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
316
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
317
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
318
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
319
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
320
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
321
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
322
        },
323
        'personnes.externalworker': {
324
            'Meta': {'object_name': 'ExternalWorker', '_ormbases': ['personnes.People']},
325
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
326
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
327
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
328
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
329
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
330
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
331
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
332
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
333
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
334
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
335
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
336
        },
337
        'personnes.people': {
338
            'Meta': {'object_name': 'People'},
339
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
340
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
341
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
342
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
343
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
344
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
345
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
346
        },
347
        'personnes.worker': {
348
            'Meta': {'object_name': 'Worker', '_ormbases': ['personnes.People']},
349
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
350
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
351
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
352
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
353
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
354
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
355
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
356
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
357
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.WorkerType']"})
358
        },
359
        'ressources.acttype': {
360
            'Meta': {'object_name': 'ActType'},
361
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
362
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
363
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
364
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
365
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
366
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
367
        },
368
        'ressources.advicegiver': {
369
            'Meta': {'object_name': 'AdviceGiver'},
370
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
371
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
372
        },
373
        'ressources.analysemotive': {
374
            'Meta': {'object_name': 'AnalyseMotive'},
375
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
376
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
377
        },
378
        'ressources.codecftmea': {
379
            'Meta': {'object_name': 'CodeCFTMEA'},
380
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
381
            'code': ('django.db.models.fields.IntegerField', [], {}),
382
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
383
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
384
        },
385
        'ressources.familymotive': {
386
            'Meta': {'object_name': 'FamilyMotive'},
387
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
388
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
389
        },
390
        'ressources.familysituationtype': {
391
            'Meta': {'object_name': 'FamilySituationType'},
392
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
393
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
394
        },
395
        'ressources.healthcenter': {
396
            'Meta': {'object_name': 'HealthCenter'},
397
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
398
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
399
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
400
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
401
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
402
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
403
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
404
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
405
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
406
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
407
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
408
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
409
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
410
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
411
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.LargeRegime']"}),
412
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
413
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
414
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
415
        },
416
        'ressources.job': {
417
            'Meta': {'object_name': 'Job'},
418
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
419
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
420
        },
421
        'ressources.largeregime': {
422
            'Meta': {'object_name': 'LargeRegime'},
423
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
424
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
425
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
426
        },
427
        'ressources.maritalstatustype': {
428
            'Meta': {'object_name': 'MaritalStatusType'},
429
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
430
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
431
        },
432
        'ressources.mdph': {
433
            'Meta': {'object_name': 'MDPH'},
434
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
435
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
436
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
437
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
438
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
439
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
440
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
441
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
442
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
443
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
444
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
445
        },
446
        'ressources.mdphrequest': {
447
            'Meta': {'object_name': 'MDPHRequest'},
448
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
449
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
450
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
451
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
452
            'start_date': ('django.db.models.fields.DateField', [], {})
453
        },
454
        'ressources.mdphresponse': {
455
            'Meta': {'object_name': 'MDPHResponse'},
456
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
457
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
458
            'end_date': ('django.db.models.fields.DateField', [], {}),
459
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
460
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
461
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
462
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
463
            'start_date': ('django.db.models.fields.DateField', [], {}),
464
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
465
        },
466
        'ressources.office': {
467
            'Meta': {'object_name': 'Office'},
468
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
469
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
470
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
471
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
472
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
473
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
474
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
475
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
476
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
477
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
478
        },
479
        'ressources.outmotive': {
480
            'Meta': {'object_name': 'OutMotive'},
481
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
482
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
483
        },
484
        'ressources.outto': {
485
            'Meta': {'object_name': 'OutTo'},
486
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
487
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
488
        },
489
        'ressources.parentalauthoritytype': {
490
            'Meta': {'object_name': 'ParentalAuthorityType'},
491
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
492
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
493
        },
494
        'ressources.parentalcustodytype': {
495
            'Meta': {'object_name': 'ParentalCustodyType'},
496
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
497
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
498
        },
499
        'ressources.patientrelatedlink': {
500
            'Meta': {'object_name': 'PatientRelatedLink'},
501
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
502
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
503
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
504
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
505
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
506
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
507
        },
508
        'ressources.provenance': {
509
            'Meta': {'object_name': 'Provenance'},
510
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
511
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
512
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
513
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
514
        },
515
        'ressources.room': {
516
            'Meta': {'object_name': 'Room'},
517
            'etablissement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Office']"}),
518
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
519
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
520
        },
521
        'ressources.school': {
522
            'Meta': {'object_name': 'School'},
523
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
524
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
525
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
526
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
527
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
528
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
529
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
530
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
531
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
532
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
533
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
534
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
535
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolType']"}),
536
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
537
        },
538
        'ressources.schoollevel': {
539
            'Meta': {'object_name': 'SchoolLevel'},
540
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
541
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
542
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
543
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
544
        },
545
        'ressources.schooltype': {
546
            'Meta': {'object_name': 'SchoolType'},
547
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
548
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
549
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'})
550
        },
551
        'ressources.service': {
552
            'Meta': {'object_name': 'Service'},
553
            'description': ('django.db.models.fields.TextField', [], {}),
554
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
555
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
556
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
557
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
558
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
559
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'})
560
        },
561
        'ressources.socialisationduration': {
562
            'Meta': {'object_name': 'SocialisationDuration'},
563
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
564
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
565
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
566
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
567
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
568
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
569
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
570
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
571
            'start_date': ('django.db.models.fields.DateField', [], {})
572
        },
573
        'ressources.transportcompany': {
574
            'Meta': {'object_name': 'TransportCompany'},
575
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
576
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
577
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
578
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
579
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
580
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
581
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
582
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
583
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
584
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
585
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
586
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
587
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
588
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
589
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
590
        },
591
        'ressources.transporttype': {
592
            'Meta': {'object_name': 'TransportType'},
593
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
594
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
595
        },
596
        'ressources.workertype': {
597
            'Meta': {'object_name': 'WorkerType'},
598
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
599
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
600
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
601
        }
602
    }
603
    
604
    complete_apps = ['actes']
20
    operations = [
21
        migrations.CreateModel(
22
            name='Act',
23
            fields=[
24
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
25
                ('date', models.DateField(verbose_name='Date', db_index=True)),
26
                ('time', models.TimeField(default=datetime.time(0, 0), null=True, verbose_name='Heure', db_index=True, blank=True)),
27
                ('_duration', models.IntegerField(default=0, null=True, verbose_name='Dur\xe9e en minutes', blank=True)),
28
                ('validation_locked', models.BooleanField(default=False, db_index=True, verbose_name='V\xe9rouillage')),
29
                ('is_billed', models.BooleanField(default=False, db_index=True, verbose_name='Factur\xe9')),
30
                ('already_billed', models.BooleanField(default=False, db_index=True, verbose_name='A d\xe9j\xe0 \xe9t\xe9 factur\xe9')),
31
                ('is_lost', models.BooleanField(default=False, db_index=True, verbose_name='Acte perdu')),
32
                ('valide', models.BooleanField(default=False, db_index=True, verbose_name='Valid\xe9')),
33
                ('switch_billable', models.BooleanField(default=False, verbose_name='Inverser type facturable')),
34
                ('pause', models.BooleanField(default=False, db_index=True, verbose_name='Pause facturation')),
35
                ('attendance', models.CharField(default=b'absent', max_length=16, verbose_name='Pr\xe9sence', choices=[(b'absent', 'Absent'), (b'present', 'Pr\xe9sent')])),
36
                ('old_id', models.CharField(max_length=256, null=True, verbose_name='Ancien ID', blank=True)),
37
                ('act_type', models.ForeignKey(verbose_name="Type d'acte", to='ressources.ActType')),
38
                ('doctors', models.ManyToManyField(to='personnes.Worker', verbose_name='Intervenants')),
39
                ('healthcare', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, verbose_name='Prise en charge utilis\xe9e pour facturer (CMPP)', blank=True, to='dossiers.HealthCare', null=True)),
40
            ],
41
            options={
42
                'ordering': ['-date', 'patient'],
43
                'verbose_name': 'Acte',
44
                'verbose_name_plural': 'Actes',
45
            },
46
            bases=(models.Model,),
47
        ),
48
        migrations.CreateModel(
49
            name='ActValidationState',
50
            fields=[
51
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
52
                ('state_name', models.CharField(max_length=150)),
53
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='Cr\xe9ation')),
54
                ('auto', models.BooleanField(default=False, verbose_name='Validat\xe9 automatiquement')),
55
                ('act', models.ForeignKey(editable=False, to='actes.Act', verbose_name='Acte')),
56
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, blank=True, editable=False, to=settings.AUTH_USER_MODEL, null=True, verbose_name='Auteur')),
57
                ('previous_state', models.ForeignKey(blank=True, editable=False, to='actes.ActValidationState', null=True, verbose_name='Etat pr\xe9c\xe9dent')),
58
            ],
59
            options={
60
                'ordering': ('-created',),
61
            },
62
            bases=(models.Model,),
63
        ),
64
        migrations.CreateModel(
65
            name='ValidationMessage',
66
            fields=[
67
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
68
                ('validation_date', models.DateTimeField()),
69
                ('what', models.CharField(max_length=256)),
70
                ('when', models.DateTimeField(auto_now_add=True)),
71
                ('service', models.ForeignKey(blank=True, to='ressources.Service', null=True)),
72
                ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
73
            ],
74
            options={
75
                'abstract': False,
76
            },
77
            bases=(models.Model,),
78
        ),
79
        migrations.AddField(
80
            model_name='act',
81
            name='last_validation_state',
82
            field=models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, default=None, to='actes.ActValidationState', null=True),
83
            preserve_default=True,
84
        ),
85
        migrations.AddField(
86
            model_name='act',
87
            name='parent_event',
88
            field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, verbose_name='Rendez-vous li\xe9', blank=True, to='agenda.Event', null=True),
89
            preserve_default=True,
90
        ),
91
        migrations.AddField(
92
            model_name='act',
93
            name='patient',
94
            field=models.ForeignKey(to='dossiers.PatientRecord'),
95
            preserve_default=True,
96
        ),
97
        migrations.AddField(
98
            model_name='act',
99
            name='transport_company',
100
            field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, verbose_name='Compagnie de transport', blank=True, to='ressources.TransportCompany', null=True),
101
            preserve_default=True,
102
        ),
103
        migrations.AddField(
104
            model_name='act',
105
            name='transport_type',
106
            field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, verbose_name='Type de transport', blank=True, to='ressources.TransportType', null=True),
107
            preserve_default=True,
108
        ),
109
    ]
calebasse/actes/migrations/0002_auto__chg_field_act_comment.py
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
class Migration(SchemaMigration):
8
    
9
    def forwards(self, orm):
10
        
11
        # Changing field 'Act.comment'
12
        db.alter_column('actes_act', 'comment', self.gf('django.db.models.fields.TextField')(null=True, blank=True))
13
    
14
    
15
    def backwards(self, orm):
16
        
17
        # Changing field 'Act.comment'
18
        db.alter_column('actes_act', 'comment', self.gf('django.db.models.fields.TextField')())
19
    
20
    
21
    models = {
22
        'actes.act': {
23
            'Meta': {'object_name': 'Act'},
24
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
25
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.ActType']"}),
26
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
27
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
28
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
29
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['personnes.Worker']", 'symmetrical': 'False'}),
30
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'blank': 'True'}),
31
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
33
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
34
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
35
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.Event']", 'null': 'True', 'blank': 'True'}),
36
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
37
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
38
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
39
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
40
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
41
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
42
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
43
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'})
44
        },
45
        'actes.actvalidationstate': {
46
            'Meta': {'object_name': 'ActValidationState'},
47
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.Act']"}),
48
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
49
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
50
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
51
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
53
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
54
        },
55
        'actes.validationmessage': {
56
            'Meta': {'object_name': 'ValidationMessage'},
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
59
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
60
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
61
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
62
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
63
        },
64
        'agenda.event': {
65
            'Meta': {'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
66
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
67
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
68
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
69
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
70
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
71
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.EventType']"}),
72
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
73
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': "orm['agenda.Event']"}),
74
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
76
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
77
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
78
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
79
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
80
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
81
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
82
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
83
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
84
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
85
            'recurrence_week_rank': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
86
            'room': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Room']", 'null': 'True', 'blank': 'True'}),
87
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
88
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
89
            'title': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
90
        },
91
        'agenda.eventtype': {
92
            'Meta': {'object_name': 'EventType'},
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
95
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
96
        },
97
        'auth.group': {
98
            'Meta': {'object_name': 'Group'},
99
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
101
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
102
        },
103
        'auth.permission': {
104
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
105
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
106
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
107
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
108
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
109
        },
110
        'auth.user': {
111
            'Meta': {'object_name': 'User'},
112
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 5, 14, 56, 59, 247276)'}),
113
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
114
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
115
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
116
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
118
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
119
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
120
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 5, 14, 56, 59, 247210)'}),
121
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
122
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
123
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
124
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
125
        },
126
        'contenttypes.contenttype': {
127
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
128
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
129
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
131
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
132
        },
133
        'dossiers.filestate': {
134
            'Meta': {'object_name': 'FileState'},
135
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
136
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
137
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
139
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
141
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'blank': 'True'}),
142
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
143
        },
144
        'dossiers.healthcare': {
145
            'Meta': {'object_name': 'HealthCare'},
146
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
147
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
148
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
149
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
150
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
152
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
153
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
154
            'start_date': ('django.db.models.fields.DateField', [], {})
155
        },
156
        'dossiers.patientaddress': {
157
            'Meta': {'object_name': 'PatientAddress'},
158
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
159
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
160
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
161
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
162
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
163
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
164
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
165
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
166
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
167
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
168
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
169
        },
170
        'dossiers.patientcontact': {
171
            'Meta': {'object_name': 'PatientContact', '_ormbases': ['personnes.People']},
172
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
173
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
174
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
175
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
176
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
177
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
178
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
179
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
180
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
181
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
182
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
183
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
184
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
185
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
186
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
187
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
188
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
189
        },
190
        'dossiers.patientrecord': {
191
            'Meta': {'object_name': 'PatientRecord', '_ormbases': ['dossiers.PatientContact']},
192
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
193
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
194
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
195
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
196
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
197
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
198
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
199
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
200
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': "orm['dossiers.PatientContact']"}),
201
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
202
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
203
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
204
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
205
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
206
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
207
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
208
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
209
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
210
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
211
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
212
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.FileState']"}),
213
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHRequest']"}),
214
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHResponse']"}),
215
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
216
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
217
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
218
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
219
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
220
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
221
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
222
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
223
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
224
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
225
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
226
            'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
227
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
228
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.PatientContact']"}),
229
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
230
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
231
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
232
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
233
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
234
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
235
            'size': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
236
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': "orm['ressources.SocialisationDuration']"}),
237
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
238
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
239
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
240
        },
241
        'dossiers.status': {
242
            'Meta': {'object_name': 'Status'},
243
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
245
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'}),
246
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
247
        },
248
        'personnes.externaltherapist': {
249
            'Meta': {'object_name': 'ExternalTherapist', '_ormbases': ['personnes.People']},
250
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
251
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
252
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
253
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
254
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
255
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
256
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
257
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
258
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
259
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
260
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
261
        },
262
        'personnes.externalworker': {
263
            'Meta': {'object_name': 'ExternalWorker', '_ormbases': ['personnes.People']},
264
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
265
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
266
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
267
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
268
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
269
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
270
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
271
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
272
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
273
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
274
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
275
        },
276
        'personnes.people': {
277
            'Meta': {'object_name': 'People'},
278
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
279
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
280
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
281
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
282
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
283
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
284
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
285
        },
286
        'personnes.worker': {
287
            'Meta': {'object_name': 'Worker', '_ormbases': ['personnes.People']},
288
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
289
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
290
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
291
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
292
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
293
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
294
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
295
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
296
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.WorkerType']"})
297
        },
298
        'ressources.acttype': {
299
            'Meta': {'object_name': 'ActType'},
300
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
301
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
302
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
303
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
304
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
305
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
306
        },
307
        'ressources.advicegiver': {
308
            'Meta': {'object_name': 'AdviceGiver'},
309
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
310
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
311
        },
312
        'ressources.analysemotive': {
313
            'Meta': {'object_name': 'AnalyseMotive'},
314
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
315
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
316
        },
317
        'ressources.codecftmea': {
318
            'Meta': {'object_name': 'CodeCFTMEA'},
319
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
320
            'code': ('django.db.models.fields.IntegerField', [], {}),
321
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
322
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
323
        },
324
        'ressources.familymotive': {
325
            'Meta': {'object_name': 'FamilyMotive'},
326
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
327
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
328
        },
329
        'ressources.familysituationtype': {
330
            'Meta': {'object_name': 'FamilySituationType'},
331
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
332
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
333
        },
334
        'ressources.healthcenter': {
335
            'Meta': {'object_name': 'HealthCenter'},
336
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
337
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
338
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
339
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
340
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
341
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
342
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
343
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
344
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
345
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
346
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
347
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
348
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
349
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
350
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.LargeRegime']"}),
351
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
352
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
353
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
354
        },
355
        'ressources.job': {
356
            'Meta': {'object_name': 'Job'},
357
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
358
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
359
        },
360
        'ressources.largeregime': {
361
            'Meta': {'object_name': 'LargeRegime'},
362
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
363
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
364
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
365
        },
366
        'ressources.maritalstatustype': {
367
            'Meta': {'object_name': 'MaritalStatusType'},
368
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
369
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
370
        },
371
        'ressources.mdph': {
372
            'Meta': {'object_name': 'MDPH'},
373
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
374
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
375
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
376
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
377
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
378
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
379
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
380
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
381
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
382
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
383
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
384
        },
385
        'ressources.mdphrequest': {
386
            'Meta': {'object_name': 'MDPHRequest'},
387
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
388
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
389
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
390
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
391
            'start_date': ('django.db.models.fields.DateField', [], {})
392
        },
393
        'ressources.mdphresponse': {
394
            'Meta': {'object_name': 'MDPHResponse'},
395
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
396
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
397
            'end_date': ('django.db.models.fields.DateField', [], {}),
398
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
399
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
400
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
401
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
402
            'start_date': ('django.db.models.fields.DateField', [], {}),
403
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
404
        },
405
        'ressources.office': {
406
            'Meta': {'object_name': 'Office'},
407
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
408
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
409
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
410
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
411
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
412
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
413
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
414
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
415
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
416
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
417
        },
418
        'ressources.outmotive': {
419
            'Meta': {'object_name': 'OutMotive'},
420
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
421
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
422
        },
423
        'ressources.outto': {
424
            'Meta': {'object_name': 'OutTo'},
425
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
426
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
427
        },
428
        'ressources.parentalauthoritytype': {
429
            'Meta': {'object_name': 'ParentalAuthorityType'},
430
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
431
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
432
        },
433
        'ressources.parentalcustodytype': {
434
            'Meta': {'object_name': 'ParentalCustodyType'},
435
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
436
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
437
        },
438
        'ressources.patientrelatedlink': {
439
            'Meta': {'object_name': 'PatientRelatedLink'},
440
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
441
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
442
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
443
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
444
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
445
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
446
        },
447
        'ressources.provenance': {
448
            'Meta': {'object_name': 'Provenance'},
449
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
450
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
451
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
452
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
453
        },
454
        'ressources.room': {
455
            'Meta': {'object_name': 'Room'},
456
            'etablissement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Office']"}),
457
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
458
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
459
        },
460
        'ressources.school': {
461
            'Meta': {'object_name': 'School'},
462
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
463
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
464
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
465
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
466
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
467
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
468
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
469
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
470
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
471
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
472
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
473
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
474
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolType']"}),
475
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
476
        },
477
        'ressources.schoollevel': {
478
            'Meta': {'object_name': 'SchoolLevel'},
479
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
480
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
481
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
482
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
483
        },
484
        'ressources.schooltype': {
485
            'Meta': {'object_name': 'SchoolType'},
486
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
487
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
488
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'})
489
        },
490
        'ressources.service': {
491
            'Meta': {'object_name': 'Service'},
492
            'description': ('django.db.models.fields.TextField', [], {}),
493
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
494
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
495
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
496
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
497
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
498
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'})
499
        },
500
        'ressources.socialisationduration': {
501
            'Meta': {'object_name': 'SocialisationDuration'},
502
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
503
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
504
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
505
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
506
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
507
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
508
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
509
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
510
            'start_date': ('django.db.models.fields.DateField', [], {})
511
        },
512
        'ressources.transportcompany': {
513
            'Meta': {'object_name': 'TransportCompany'},
514
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
515
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
516
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
517
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
518
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
519
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
520
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
521
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
522
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
523
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
524
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
525
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
526
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
527
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
528
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
529
        },
530
        'ressources.transporttype': {
531
            'Meta': {'object_name': 'TransportType'},
532
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
533
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
534
        },
535
        'ressources.workertype': {
536
            'Meta': {'object_name': 'WorkerType'},
537
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
538
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
539
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
540
        }
541
    }
542
    
543
    complete_apps = ['actes']
calebasse/actes/migrations/0003_auto__add_field_act_last_validation_state.py
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

  
8
class Migration(SchemaMigration):
9
    
10
    def forwards(self, orm):
11
        
12
        # Adding field 'Act.last_validation_state'
13
        db.add_column('actes_act', 'last_validation_state', self.gf('django.db.models.fields.related.ForeignKey')(default=None, related_name='+', null=True, to=orm['actes.ActValidationState']), keep_default=False)
14

  
15
    
16
    def backwards(self, orm):
17
        
18
        # Deleting field 'Act.last_validation_state'
19
        db.delete_column('actes_act', 'last_validation_state_id')
20
    
21
    
22
    models = {
23
        'actes.act': {
24
            'Meta': {'object_name': 'Act'},
25
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
26
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.ActType']"}),
27
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
28
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
29
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
30
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['personnes.Worker']", 'symmetrical': 'False'}),
31
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'blank': 'True'}),
32
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
34
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
35
            'last_validation_state': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'to': "orm['actes.ActValidationState']"}),
36
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
37
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.Event']", 'null': 'True', 'blank': 'True'}),
38
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
39
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
40
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
41
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
42
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
43
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
44
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
45
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'})
46
        },
47
        'actes.actvalidationstate': {
48
            'Meta': {'object_name': 'ActValidationState'},
49
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.Act']"}),
50
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
51
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
52
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
55
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
56
        },
57
        'actes.validationmessage': {
58
            'Meta': {'object_name': 'ValidationMessage'},
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
61
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
62
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
63
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
64
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
65
        },
66
        'agenda.event': {
67
            'Meta': {'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
68
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
69
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
70
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
71
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
72
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
73
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.EventType']"}),
74
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
75
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': "orm['agenda.Event']"}),
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
78
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
79
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
80
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
81
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
82
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
83
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
84
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
85
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
86
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
87
            'recurrence_week_rank': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
88
            'room': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Room']", 'null': 'True', 'blank': 'True'}),
89
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
90
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
91
            'title': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
92
        },
93
        'agenda.eventtype': {
94
            'Meta': {'object_name': 'EventType'},
95
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
97
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
98
        },
99
        'auth.group': {
100
            'Meta': {'object_name': 'Group'},
101
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
103
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
104
        },
105
        'auth.permission': {
106
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
107
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
108
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
109
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
111
        },
112
        'auth.user': {
113
            'Meta': {'object_name': 'User'},
114
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 29, 12, 35, 30, 283745)'}),
115
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
116
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
117
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
118
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
120
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
121
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
122
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 29, 12, 35, 30, 283679)'}),
123
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
124
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
125
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
126
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
127
        },
128
        'contenttypes.contenttype': {
129
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
130
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
131
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
133
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
134
        },
135
        'dossiers.filestate': {
136
            'Meta': {'object_name': 'FileState'},
137
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
138
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
139
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
140
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
141
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
143
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'blank': 'True'}),
144
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
145
        },
146
        'dossiers.healthcare': {
147
            'Meta': {'object_name': 'HealthCare'},
148
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
149
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
150
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
151
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
152
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
153
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
154
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
155
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
156
            'start_date': ('django.db.models.fields.DateField', [], {})
157
        },
158
        'dossiers.patientaddress': {
159
            'Meta': {'object_name': 'PatientAddress'},
160
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
161
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
162
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
163
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
164
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
165
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
166
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
167
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
168
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
169
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
170
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
171
        },
172
        'dossiers.patientcontact': {
173
            'Meta': {'object_name': 'PatientContact', '_ormbases': ['personnes.People']},
174
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
175
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
176
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
177
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
178
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
179
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
180
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
181
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
182
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
183
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
184
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
185
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
186
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
187
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
188
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
189
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
190
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
191
        },
192
        'dossiers.patientrecord': {
193
            'Meta': {'object_name': 'PatientRecord', '_ormbases': ['dossiers.PatientContact']},
194
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
195
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
196
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
197
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
198
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
199
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
200
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
201
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
202
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': "orm['dossiers.PatientContact']"}),
203
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
204
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
205
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
206
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
207
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
208
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
209
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
210
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
211
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
212
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
213
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
214
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.FileState']"}),
215
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHRequest']"}),
216
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHResponse']"}),
217
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
218
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
219
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
220
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
221
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
222
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
223
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
224
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
225
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
226
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
227
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
228
            'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
229
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
230
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.PatientContact']"}),
231
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
232
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
233
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
234
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
235
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
236
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
237
            'size': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
238
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': "orm['ressources.SocialisationDuration']"}),
239
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
240
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
241
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
242
        },
243
        'dossiers.status': {
244
            'Meta': {'object_name': 'Status'},
245
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
246
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
247
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'}),
248
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
249
        },
250
        'personnes.externaltherapist': {
251
            'Meta': {'object_name': 'ExternalTherapist', '_ormbases': ['personnes.People']},
252
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
253
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
254
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
255
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
256
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
257
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
258
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
259
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
260
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
261
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
262
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
263
        },
264
        'personnes.externalworker': {
265
            'Meta': {'object_name': 'ExternalWorker', '_ormbases': ['personnes.People']},
266
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
267
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
268
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
269
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
270
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
271
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
272
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
273
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
274
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
275
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
276
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
277
        },
278
        'personnes.people': {
279
            'Meta': {'object_name': 'People'},
280
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
281
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
282
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
283
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
284
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
285
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
286
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
287
        },
288
        'personnes.worker': {
289
            'Meta': {'object_name': 'Worker', '_ormbases': ['personnes.People']},
290
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
291
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
292
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
293
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
294
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
295
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
296
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
297
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
298
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.WorkerType']"})
299
        },
300
        'ressources.acttype': {
301
            'Meta': {'object_name': 'ActType'},
302
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
303
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
304
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
305
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
306
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
307
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
308
        },
309
        'ressources.advicegiver': {
310
            'Meta': {'object_name': 'AdviceGiver'},
311
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
312
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
313
        },
314
        'ressources.analysemotive': {
315
            'Meta': {'object_name': 'AnalyseMotive'},
316
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
317
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
318
        },
319
        'ressources.codecftmea': {
320
            'Meta': {'object_name': 'CodeCFTMEA'},
321
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
322
            'code': ('django.db.models.fields.IntegerField', [], {}),
323
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
324
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
325
        },
326
        'ressources.familymotive': {
327
            'Meta': {'object_name': 'FamilyMotive'},
328
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
329
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
330
        },
331
        'ressources.familysituationtype': {
332
            'Meta': {'object_name': 'FamilySituationType'},
333
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
335
        },
336
        'ressources.healthcenter': {
337
            'Meta': {'object_name': 'HealthCenter'},
338
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
339
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
340
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
341
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
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'}),
344
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
345
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
346
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
347
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
348
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
349
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
350
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
351
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
352
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.LargeRegime']"}),
353
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
354
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
355
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
356
        },
357
        'ressources.job': {
358
            'Meta': {'object_name': 'Job'},
359
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
360
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
361
        },
362
        'ressources.largeregime': {
363
            'Meta': {'object_name': 'LargeRegime'},
364
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
365
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
366
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
367
        },
368
        'ressources.maritalstatustype': {
369
            'Meta': {'object_name': 'MaritalStatusType'},
370
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
371
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
372
        },
373
        'ressources.mdph': {
374
            'Meta': {'object_name': 'MDPH'},
375
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
376
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
377
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
378
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
379
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
380
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
381
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
382
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
383
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
384
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
385
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
386
        },
387
        'ressources.mdphrequest': {
388
            'Meta': {'object_name': 'MDPHRequest'},
389
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
390
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
391
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
392
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
393
            'start_date': ('django.db.models.fields.DateField', [], {})
394
        },
395
        'ressources.mdphresponse': {
396
            'Meta': {'object_name': 'MDPHResponse'},
397
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
398
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
399
            'end_date': ('django.db.models.fields.DateField', [], {}),
400
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
401
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
402
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
403
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
404
            'start_date': ('django.db.models.fields.DateField', [], {}),
405
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
406
        },
407
        'ressources.office': {
408
            'Meta': {'object_name': 'Office'},
409
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
410
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
411
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
412
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
413
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
414
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
415
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
416
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
417
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
418
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
419
        },
420
        'ressources.outmotive': {
421
            'Meta': {'object_name': 'OutMotive'},
422
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
423
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
424
        },
425
        'ressources.outto': {
426
            'Meta': {'object_name': 'OutTo'},
427
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
428
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
429
        },
430
        'ressources.parentalauthoritytype': {
431
            'Meta': {'object_name': 'ParentalAuthorityType'},
432
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
433
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
434
        },
435
        'ressources.parentalcustodytype': {
436
            'Meta': {'object_name': 'ParentalCustodyType'},
437
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
438
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
439
        },
440
        'ressources.patientrelatedlink': {
441
            'Meta': {'object_name': 'PatientRelatedLink'},
442
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
443
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
444
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
445
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
446
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
447
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
448
        },
449
        'ressources.provenance': {
450
            'Meta': {'object_name': 'Provenance'},
451
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
452
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
453
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
454
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
455
        },
456
        'ressources.room': {
457
            'Meta': {'object_name': 'Room'},
458
            'etablissement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Office']"}),
459
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
460
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
461
        },
462
        'ressources.school': {
463
            'Meta': {'object_name': 'School'},
464
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
465
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
466
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
467
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
468
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
469
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
470
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
471
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
472
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
473
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
474
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
475
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
476
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolType']"}),
477
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
478
        },
479
        'ressources.schoollevel': {
480
            'Meta': {'object_name': 'SchoolLevel'},
481
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
482
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
483
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
484
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
485
        },
486
        'ressources.schooltype': {
487
            'Meta': {'object_name': 'SchoolType'},
488
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
489
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
490
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'})
491
        },
492
        'ressources.service': {
493
            'Meta': {'object_name': 'Service'},
494
            'description': ('django.db.models.fields.TextField', [], {}),
495
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
496
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
497
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
498
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
499
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
500
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'})
501
        },
502
        'ressources.socialisationduration': {
503
            'Meta': {'object_name': 'SocialisationDuration'},
504
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
505
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
506
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
507
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
508
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
509
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
510
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
511
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
512
            'start_date': ('django.db.models.fields.DateField', [], {})
513
        },
514
        'ressources.transportcompany': {
515
            'Meta': {'object_name': 'TransportCompany'},
516
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
517
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
518
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
519
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
520
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
521
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
522
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
523
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
524
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
525
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
526
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
527
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
528
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
529
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
530
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
531
        },
532
        'ressources.transporttype': {
533
            'Meta': {'object_name': 'TransportType'},
534
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
535
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
536
        },
537
        'ressources.workertype': {
538
            'Meta': {'object_name': 'WorkerType'},
539
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
540
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
541
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
542
        }
543
    }
544
    
545
    complete_apps = ['actes']
calebasse/actes/migrations/0004_add_last_validation_state.py
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

  
8
class Migration(SchemaMigration):
9
    
10
    def forwards(self, orm):
11
        
12
        # Manual migration to set the last validation state
13
        from calebasse.actes.models import Act
14
        for act in Act.objects.all():
15
            if act.actvalidationstate_set.all():
16
                act.last_validation_state = act.actvalidationstate_set.latest('created')
17
                act.save()
18
    
19
    
20
    def backwards(self, orm):
21
        
22
        pass
23
    
24
    models = {
25
        'actes.act': {
26
            'Meta': {'object_name': 'Act'},
27
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
28
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.ActType']"}),
29
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
30
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
31
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
32
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['personnes.Worker']", 'symmetrical': 'False'}),
33
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'blank': 'True'}),
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
36
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
37
            'last_validation_state': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'to': "orm['actes.ActValidationState']"}),
38
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
39
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.Event']", 'null': 'True', 'blank': 'True'}),
40
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
41
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
42
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
43
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
44
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
45
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
46
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
47
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'})
48
        },
49
        'actes.actvalidationstate': {
50
            'Meta': {'object_name': 'ActValidationState'},
51
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.Act']"}),
52
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
53
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
54
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
55
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
57
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
58
        },
59
        'actes.validationmessage': {
60
            'Meta': {'object_name': 'ValidationMessage'},
61
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
63
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
64
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
65
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
66
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
67
        },
68
        'agenda.event': {
69
            'Meta': {'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
70
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
71
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
72
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
73
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
74
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
75
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['agenda.EventType']"}),
76
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
77
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': "orm['agenda.Event']"}),
78
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
80
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
81
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
82
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
83
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
84
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
85
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
86
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
87
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
88
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
89
            'recurrence_week_rank': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
90
            'room': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Room']", 'null': 'True', 'blank': 'True'}),
91
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
92
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
93
            'title': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
94
        },
95
        'agenda.eventtype': {
96
            'Meta': {'object_name': 'EventType'},
97
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
99
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
100
        },
101
        'auth.group': {
102
            'Meta': {'object_name': 'Group'},
103
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
105
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
106
        },
107
        'auth.permission': {
108
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
109
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
110
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
111
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
113
        },
114
        'auth.user': {
115
            'Meta': {'object_name': 'User'},
116
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 29, 12, 35, 30, 283745)'}),
117
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
118
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
119
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
120
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
121
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
122
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
123
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
124
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 29, 12, 35, 30, 283679)'}),
125
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
126
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
127
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
128
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
129
        },
130
        'contenttypes.contenttype': {
131
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
132
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
133
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
134
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
135
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
136
        },
137
        'dossiers.filestate': {
138
            'Meta': {'object_name': 'FileState'},
139
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
140
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
141
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
142
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
143
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
145
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'blank': 'True'}),
146
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
147
        },
148
        'dossiers.healthcare': {
149
            'Meta': {'object_name': 'HealthCare'},
150
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
151
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
152
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
153
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
154
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
155
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
156
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.PatientRecord']"}),
157
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
158
            'start_date': ('django.db.models.fields.DateField', [], {})
159
        },
160
        'dossiers.patientaddress': {
161
            'Meta': {'object_name': 'PatientAddress'},
162
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
163
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
164
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
165
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
166
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
167
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
169
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
170
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
171
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
172
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
173
        },
174
        'dossiers.patientcontact': {
175
            'Meta': {'object_name': 'PatientContact', '_ormbases': ['personnes.People']},
176
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
177
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
178
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
179
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
180
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
181
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
182
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
183
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
184
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
185
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
186
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
187
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
188
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
189
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
190
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
191
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
192
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
193
        },
194
        'dossiers.patientrecord': {
195
            'Meta': {'object_name': 'PatientRecord', '_ormbases': ['dossiers.PatientContact']},
196
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
197
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
198
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
199
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
200
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
201
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
202
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
203
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
204
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': "orm['dossiers.PatientContact']"}),
205
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': "orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
206
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
207
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
208
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
209
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
210
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
211
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
212
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
213
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
214
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
215
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.Job']"}),
216
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.FileState']"}),
217
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHRequest']"}),
218
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': "orm['ressources.MDPHResponse']"}),
219
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
220
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
221
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': "orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
222
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
223
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
224
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
225
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
226
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
227
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
228
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
229
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
230
            'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
231
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
232
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['dossiers.PatientContact']"}),
233
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
234
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
235
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
236
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': "orm['ressources.MaritalStatusType']"}),
237
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
238
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
239
            'size': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
240
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': "orm['ressources.SocialisationDuration']"}),
241
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
242
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
243
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
244
        },
245
        'dossiers.status': {
246
            'Meta': {'object_name': 'Status'},
247
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
248
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
249
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'}),
250
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
251
        },
252
        'personnes.externaltherapist': {
253
            'Meta': {'object_name': 'ExternalTherapist', '_ormbases': ['personnes.People']},
254
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
255
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
256
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
257
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
258
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
259
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
260
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
261
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
262
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
263
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
264
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
265
        },
266
        'personnes.externalworker': {
267
            'Meta': {'object_name': 'ExternalWorker', '_ormbases': ['personnes.People']},
268
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
269
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
270
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
271
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
272
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
273
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
274
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
275
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
276
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
277
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
278
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
279
        },
280
        'personnes.people': {
281
            'Meta': {'object_name': 'People'},
282
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
283
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
284
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
285
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
286
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
287
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
288
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
289
        },
290
        'personnes.worker': {
291
            'Meta': {'object_name': 'Worker', '_ormbases': ['personnes.People']},
292
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
293
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
294
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
295
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
296
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
297
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
298
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
299
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
300
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.WorkerType']"})
301
        },
302
        'ressources.acttype': {
303
            'Meta': {'object_name': 'ActType'},
304
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
305
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
306
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
307
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
308
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
309
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
310
        },
311
        'ressources.advicegiver': {
312
            'Meta': {'object_name': 'AdviceGiver'},
313
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
314
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
315
        },
316
        'ressources.analysemotive': {
317
            'Meta': {'object_name': 'AnalyseMotive'},
318
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
319
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
320
        },
321
        'ressources.codecftmea': {
322
            'Meta': {'object_name': 'CodeCFTMEA'},
323
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
324
            'code': ('django.db.models.fields.IntegerField', [], {}),
325
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
326
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
327
        },
328
        'ressources.familymotive': {
329
            'Meta': {'object_name': 'FamilyMotive'},
330
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
331
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
332
        },
333
        'ressources.familysituationtype': {
334
            'Meta': {'object_name': 'FamilySituationType'},
335
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
336
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
337
        },
338
        'ressources.healthcenter': {
339
            'Meta': {'object_name': 'HealthCenter'},
340
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
341
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
342
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
343
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
344
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
345
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
346
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
347
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
348
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
349
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
350
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
351
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
352
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
353
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
354
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.LargeRegime']"}),
355
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
356
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
357
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
358
        },
359
        'ressources.job': {
360
            'Meta': {'object_name': 'Job'},
361
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
362
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
363
        },
364
        'ressources.largeregime': {
365
            'Meta': {'object_name': 'LargeRegime'},
366
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
367
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
368
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
369
        },
370
        'ressources.maritalstatustype': {
371
            'Meta': {'object_name': 'MaritalStatusType'},
372
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
373
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
374
        },
375
        'ressources.mdph': {
376
            'Meta': {'object_name': 'MDPH'},
377
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
378
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
379
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
380
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
381
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
382
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
383
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
384
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
385
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
386
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
387
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
388
        },
389
        'ressources.mdphrequest': {
390
            'Meta': {'object_name': 'MDPHRequest'},
391
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
392
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
393
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
394
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
395
            'start_date': ('django.db.models.fields.DateField', [], {})
396
        },
397
        'ressources.mdphresponse': {
398
            'Meta': {'object_name': 'MDPHResponse'},
399
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
400
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
401
            'end_date': ('django.db.models.fields.DateField', [], {}),
402
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
403
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.MDPH']"}),
404
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
405
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
406
            'start_date': ('django.db.models.fields.DateField', [], {}),
407
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
408
        },
409
        'ressources.office': {
410
            'Meta': {'object_name': 'Office'},
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', [], {'null': 'True', 'blank': 'True'}),
415
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
416
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
417
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
418
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
419
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
420
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
421
        },
422
        'ressources.outmotive': {
423
            'Meta': {'object_name': 'OutMotive'},
424
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
425
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
426
        },
427
        'ressources.outto': {
428
            'Meta': {'object_name': 'OutTo'},
429
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
430
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
431
        },
432
        'ressources.parentalauthoritytype': {
433
            'Meta': {'object_name': 'ParentalAuthorityType'},
434
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
435
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
436
        },
437
        'ressources.parentalcustodytype': {
438
            'Meta': {'object_name': 'ParentalCustodyType'},
439
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
440
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
441
        },
442
        'ressources.patientrelatedlink': {
443
            'Meta': {'object_name': 'PatientRelatedLink'},
444
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
445
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
446
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
447
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
448
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
449
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
450
        },
451
        'ressources.provenance': {
452
            'Meta': {'object_name': 'Provenance'},
453
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
454
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
455
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
456
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
457
        },
458
        'ressources.room': {
459
            'Meta': {'object_name': 'Room'},
460
            'etablissement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Office']"}),
461
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
462
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
463
        },
464
        'ressources.school': {
465
            'Meta': {'object_name': 'School'},
466
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
467
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
468
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
469
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
470
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
471
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
472
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
473
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
474
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
475
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
476
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
477
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
478
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolType']"}),
479
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
480
        },
481
        'ressources.schoollevel': {
482
            'Meta': {'object_name': 'SchoolLevel'},
483
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
484
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
485
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
486
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
487
        },
488
        'ressources.schooltype': {
489
            'Meta': {'object_name': 'SchoolType'},
490
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
491
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
492
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'})
493
        },
494
        'ressources.service': {
495
            'Meta': {'object_name': 'Service'},
496
            'description': ('django.db.models.fields.TextField', [], {}),
497
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
498
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
499
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
500
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
501
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
502
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'})
503
        },
504
        'ressources.socialisationduration': {
505
            'Meta': {'object_name': 'SocialisationDuration'},
506
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
507
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
508
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
509
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
510
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
511
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
512
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
513
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
514
            'start_date': ('django.db.models.fields.DateField', [], {})
515
        },
516
        'ressources.transportcompany': {
517
            'Meta': {'object_name': 'TransportCompany'},
518
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
519
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
520
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
521
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
522
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
523
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
524
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
525
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
526
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
527
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
528
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
529
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
530
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
531
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
532
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
533
        },
534
        'ressources.transporttype': {
535
            'Meta': {'object_name': 'TransportType'},
536
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
537
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
538
        },
539
        'ressources.workertype': {
540
            'Meta': {'object_name': 'WorkerType'},
541
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
542
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
543
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
544
        }
545
    }
546
    
547
    complete_apps = ['actes']
calebasse/actes/migrations/0005_auto__chg_field_actvalidationstate_author__chg_field_act_parent_event_.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 'ActValidationState.author'
13
        db.alter_column(u'actes_actvalidationstate', 'author_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, on_delete=models.SET_NULL))
14

  
15
        # Changing field 'Act.parent_event'
16
        db.alter_column(u'actes_act', 'parent_event_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['agenda.Event'], null=True, on_delete=models.SET_NULL))
17

  
18
        # Changing field 'Act.transport_type'
19
        db.alter_column(u'actes_act', 'transport_type_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.TransportType'], null=True, on_delete=models.SET_NULL))
20

  
21
        # Changing field 'Act.transport_company'
22
        db.alter_column(u'actes_act', 'transport_company_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.TransportCompany'], null=True, on_delete=models.SET_NULL))
23

  
24
        # Changing field 'Act.healthcare'
25
        db.alter_column(u'actes_act', 'healthcare_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dossiers.HealthCare'], null=True, on_delete=models.SET_NULL))
26

  
27
        # Changing field 'Act.last_validation_state'
28
        db.alter_column(u'actes_act', 'last_validation_state_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, on_delete=models.SET_NULL, to=orm['actes.ActValidationState']))
29

  
30
    def backwards(self, orm):
31

  
32
        # Changing field 'ActValidationState.author'
33
        db.alter_column(u'actes_actvalidationstate', 'author_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True))
34

  
35
        # Changing field 'Act.parent_event'
36
        db.alter_column(u'actes_act', 'parent_event_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['agenda.Event'], null=True))
37

  
38
        # Changing field 'Act.transport_type'
39
        db.alter_column(u'actes_act', 'transport_type_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.TransportType'], null=True))
40

  
41
        # Changing field 'Act.transport_company'
42
        db.alter_column(u'actes_act', 'transport_company_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.TransportCompany'], null=True))
43

  
44
        # Changing field 'Act.healthcare'
45
        db.alter_column(u'actes_act', 'healthcare_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dossiers.HealthCare'], null=True))
46

  
47
        # Changing field 'Act.last_validation_state'
48
        db.alter_column(u'actes_act', 'last_validation_state_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['actes.ActValidationState']))
49

  
50
    models = {
51
        u'actes.act': {
52
            'Meta': {'ordering': "['-date', 'patient']", 'object_name': 'Act'},
53
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
54
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ActType']"}),
55
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
56
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
57
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
58
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['personnes.Worker']", 'symmetrical': 'False'}),
59
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
60
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
62
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
63
            'last_validation_state': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['actes.ActValidationState']"}),
64
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
65
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.Event']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
66
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
67
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
68
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
70
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
71
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.TransportType']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
72
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
73
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'})
74
        },
75
        'actes.actvalidationstate': {
76
            'Meta': {'ordering': "('-created',)", 'object_name': 'ActValidationState'},
77
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['actes.Act']"}),
78
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
79
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
83
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
84
        },
85
        u'actes.validationmessage': {
86
            'Meta': {'object_name': 'ValidationMessage'},
87
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
89
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
90
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
91
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
92
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
93
        },
94
        u'agenda.event': {
95
            'Meta': {'ordering': "('start_datetime', 'end_datetime', 'title')", 'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
96
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
97
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
98
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
99
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
100
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
101
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.EventType']"}),
102
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
103
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': u"orm['agenda.Event']"}),
104
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
106
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
107
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
108
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
109
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
110
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
111
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
112
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
113
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
114
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
115
            'recurrence_week_rank': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
116
            'room': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Room']", 'null': 'True', 'blank': 'True'}),
117
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
118
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
119
            'title': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'})
120
        },
121
        u'agenda.eventtype': {
122
            'Meta': {'object_name': 'EventType'},
123
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
124
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
125
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
126
        },
127
        u'auth.group': {
128
            'Meta': {'object_name': 'Group'},
129
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
131
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
132
        },
133
        u'auth.permission': {
134
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
135
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
136
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
137
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
139
        },
140
        u'auth.user': {
141
            'Meta': {'object_name': 'User'},
142
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
143
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
144
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
145
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
146
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
148
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
149
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
150
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
151
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
152
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
153
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
154
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
155
        },
156
        u'contenttypes.contenttype': {
157
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
158
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
159
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
160
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
161
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
162
        },
163
        'dossiers.filestate': {
164
            'Meta': {'object_name': 'FileState'},
165
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
166
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
167
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
168
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
169
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
170
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
171
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
172
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
173
        },
174
        'dossiers.healthcare': {
175
            'Meta': {'object_name': 'HealthCare'},
176
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
177
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
178
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
179
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
180
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
181
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
182
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
183
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
184
            'start_date': ('django.db.models.fields.DateField', [], {})
185
        },
186
        u'dossiers.patientaddress': {
187
            'Meta': {'object_name': 'PatientAddress'},
188
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
189
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
190
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
191
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
192
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
193
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
195
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
196
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
197
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
198
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
199
        },
200
        u'dossiers.patientcontact': {
201
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'PatientContact', '_ormbases': [u'personnes.People']},
202
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
203
            'ame': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
205
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
206
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
207
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
208
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
209
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
210
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
211
            'management_code': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ManagementCode']", 'null': 'True', 'blank': 'True'}),
212
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
213
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
214
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
215
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
216
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
217
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
218
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
219
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
220
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
221
        },
222
        u'dossiers.patientrecord': {
223
            'Meta': {'object_name': 'PatientRecord', '_ormbases': [u'dossiers.PatientContact']},
224
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
225
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
226
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
227
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
228
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
229
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
230
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
231
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': u"orm['dossiers.PatientContact']"}),
233
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
234
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
235
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
236
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
237
            'deficiency_auditory': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
238
            'deficiency_autism_and_other_ted': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
239
            'deficiency_behavioral_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
240
            'deficiency_brain_damage': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
241
            'deficiency_in_diagnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'deficiency_intellectual': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
243
            'deficiency_learning_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
244
            'deficiency_mental_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
245
            'deficiency_metabolic_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
246
            'deficiency_motor': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
247
            'deficiency_other_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
248
            'deficiency_polyhandicap': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'deficiency_visual': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
250
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
251
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
252
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
253
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
254
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
255
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
256
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
257
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['dossiers.FileState']"}),
258
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHRequest']"}),
259
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHResponse']"}),
260
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
261
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
262
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
263
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
264
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
265
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
266
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
267
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
268
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
269
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
270
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
271
            u'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
272
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
273
            'pause_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
274
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['dossiers.PatientContact']"}),
275
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
276
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
277
            'provenanceplace': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ProvenancePlace']", 'null': 'True', 'blank': 'True'}),
278
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
279
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
280
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
281
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
282
            'size': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '1', 'blank': 'True'}),
283
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': u"orm['ressources.SocialisationDuration']"}),
284
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
285
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
286
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
287
        },
288
        'dossiers.status': {
289
            'Meta': {'object_name': 'Status'},
290
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
291
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
292
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'}),
293
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
294
        },
295
        u'personnes.externaltherapist': {
296
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalTherapist', '_ormbases': [u'personnes.People']},
297
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
298
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
299
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
300
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
301
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
302
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
303
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
304
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
305
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
306
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
307
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
308
        },
309
        u'personnes.externalworker': {
310
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalWorker', '_ormbases': [u'personnes.People']},
311
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
312
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
313
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
314
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
315
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
316
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
317
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
318
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
319
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
320
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
321
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
322
        },
323
        u'personnes.people': {
324
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'People'},
325
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
326
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
327
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
328
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
329
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
330
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
331
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
332
        },
333
        u'personnes.worker': {
334
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'Worker', '_ormbases': [u'personnes.People']},
335
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
336
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
337
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
338
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
339
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
340
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
341
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
342
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
343
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.WorkerType']"})
344
        },
345
        u'ressources.acttype': {
346
            'Meta': {'ordering': "('-display_first', 'name')", 'object_name': 'ActType'},
347
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
348
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
349
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
350
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
351
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
352
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
353
        },
354
        u'ressources.advicegiver': {
355
            'Meta': {'object_name': 'AdviceGiver'},
356
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
357
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
358
        },
359
        u'ressources.analysemotive': {
360
            'Meta': {'object_name': 'AnalyseMotive'},
361
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
362
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
363
        },
364
        u'ressources.codecftmea': {
365
            'Meta': {'ordering': "['ordering_code']", 'object_name': 'CodeCFTMEA'},
366
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
367
            'code': ('django.db.models.fields.IntegerField', [], {}),
368
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
369
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
370
            'ordering_code': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
371
        },
372
        u'ressources.familymotive': {
373
            'Meta': {'object_name': 'FamilyMotive'},
374
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
375
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
376
        },
377
        u'ressources.familysituationtype': {
378
            'Meta': {'object_name': 'FamilySituationType'},
379
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
380
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
381
        },
382
        u'ressources.healthcenter': {
383
            'Meta': {'object_name': 'HealthCenter'},
384
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
385
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
386
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
387
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
388
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
389
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
390
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
391
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
392
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
393
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
394
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
395
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
396
            'hc_invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
397
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
398
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
399
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.LargeRegime']"}),
400
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
401
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
402
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
403
        },
404
        u'ressources.job': {
405
            'Meta': {'object_name': 'Job'},
406
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
407
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
408
        },
409
        u'ressources.largeregime': {
410
            'Meta': {'object_name': 'LargeRegime'},
411
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
412
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
413
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
414
        },
415
        u'ressources.managementcode': {
416
            'Meta': {'object_name': 'ManagementCode'},
417
            'code': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
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
        },
422
        u'ressources.maritalstatustype': {
423
            'Meta': {'object_name': 'MaritalStatusType'},
424
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
425
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
426
        },
427
        u'ressources.mdph': {
428
            'Meta': {'object_name': 'MDPH'},
429
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
430
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
431
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
432
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
433
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
434
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
435
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
436
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
437
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
438
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
439
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
440
        },
441
        u'ressources.mdphrequest': {
442
            'Meta': {'object_name': 'MDPHRequest'},
443
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
444
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
445
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
446
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.MDPH']"}),
447
            'start_date': ('django.db.models.fields.DateField', [], {})
448
        },
449
        u'ressources.mdphresponse': {
450
            'Meta': {'object_name': 'MDPHResponse'},
451
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
452
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
453
            'end_date': ('django.db.models.fields.DateField', [], {}),
454
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
455
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.MDPH']"}),
456
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
457
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
458
            'start_date': ('django.db.models.fields.DateField', [], {}),
459
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
460
        },
461
        u'ressources.office': {
462
            'Meta': {'object_name': 'Office'},
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
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
467
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
468
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
469
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
470
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
471
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
472
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
473
        },
474
        u'ressources.outmotive': {
475
            'Meta': {'object_name': 'OutMotive'},
476
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
477
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
478
        },
479
        u'ressources.outto': {
480
            'Meta': {'object_name': 'OutTo'},
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.parentalauthoritytype': {
485
            'Meta': {'object_name': 'ParentalAuthorityType'},
486
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
487
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
488
        },
489
        u'ressources.parentalcustodytype': {
490
            'Meta': {'object_name': 'ParentalCustodyType'},
491
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
492
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
493
        },
494
        u'ressources.patientrelatedlink': {
495
            'Meta': {'object_name': 'PatientRelatedLink'},
496
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
497
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
498
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
499
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
500
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
501
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
502
        },
503
        u'ressources.provenance': {
504
            'Meta': {'object_name': 'Provenance'},
505
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
506
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
507
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
508
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
509
        },
510
        u'ressources.provenanceplace': {
511
            'Meta': {'object_name': 'ProvenancePlace'},
512
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
513
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
514
        },
515
        u'ressources.room': {
516
            'Meta': {'object_name': 'Room'},
517
            'etablissement': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Office']"}),
518
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
519
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
520
        },
521
        u'ressources.school': {
522
            'Meta': {'object_name': 'School'},
523
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
524
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
525
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
526
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
527
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
528
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
529
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
530
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
531
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
532
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
533
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
534
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
535
            'private': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
536
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.SchoolType']"}),
537
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
538
        },
539
        u'ressources.schoollevel': {
540
            'Meta': {'object_name': 'SchoolLevel'},
541
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
542
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
543
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
544
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
545
        },
546
        u'ressources.schooltype': {
547
            'Meta': {'object_name': 'SchoolType'},
548
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
549
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
550
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'})
551
        },
552
        u'ressources.service': {
553
            'Meta': {'object_name': 'Service'},
554
            'description': ('django.db.models.fields.TextField', [], {}),
555
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
556
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
557
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
558
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
559
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
560
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
561
        },
562
        u'ressources.socialisationduration': {
563
            'Meta': {'object_name': 'SocialisationDuration'},
564
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
565
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
566
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
567
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
568
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
569
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
570
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
571
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
572
            'start_date': ('django.db.models.fields.DateField', [], {})
573
        },
574
        u'ressources.transportcompany': {
575
            'Meta': {'object_name': 'TransportCompany'},
576
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
577
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
578
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
579
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
580
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
581
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
582
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
583
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
584
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
585
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
586
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
587
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
588
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
589
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
590
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
591
        },
592
        u'ressources.transporttype': {
593
            'Meta': {'object_name': 'TransportType'},
594
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
595
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
596
        },
597
        u'ressources.workertype': {
598
            'Meta': {'object_name': 'WorkerType'},
599
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
600
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
601
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
602
        }
603
    }
604

  
605
    complete_apps = ['actes']
calebasse/actes/migrations/0006_migrate_comment_act_to_event.py
1
# -*- coding: utf-8 -*-
2
from south.utils import datetime_utils as datetime
3
from south.db import db
4
from south.v2 import DataMigration
5
from django.db import models
6

  
7
class Migration(DataMigration):
8

  
9
    def forwards(self, orm):
10
        for a in orm.Act.objects.filter(comment__isnull=False):
11
            if a.comment != "" and a.parent_event and not a.parent_event.recurrence_periodicity \
12
                    and (not a.parent_event.description or a.parent_event.description == ""):
13
                a.parent_event.description = a.comment
14
                a.parent_event.save()
15

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

  
19
    models = {
20
        u'actes.act': {
21
            'Meta': {'ordering': "['-date', 'patient']", 'object_name': 'Act'},
22
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
23
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ActType']"}),
24
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
25
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
26
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
27
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['personnes.Worker']", 'symmetrical': 'False'}),
28
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
29
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
31
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
32
            'last_validation_state': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['actes.ActValidationState']"}),
33
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
34
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.Event']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
35
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
36
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
37
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
38
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
39
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
40
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.TransportType']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
41
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
42
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'})
43
        },
44
        'actes.actvalidationstate': {
45
            'Meta': {'ordering': "('-created',)", 'object_name': 'ActValidationState'},
46
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['actes.Act']"}),
47
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
48
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
49
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
50
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
52
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
53
        },
54
        u'actes.validationmessage': {
55
            'Meta': {'object_name': 'ValidationMessage'},
56
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
58
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
59
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
60
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
61
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
62
        },
63
        u'agenda.event': {
64
            'Meta': {'ordering': "('start_datetime', 'end_datetime', 'title')", 'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
65
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
66
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
67
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
68
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
69
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
70
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.EventType']"}),
71
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
72
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': u"orm['agenda.Event']"}),
73
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
75
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
76
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
77
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
78
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
79
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
80
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
81
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
82
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
83
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
84
            'recurrence_week_rank': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
85
            'ressource': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Ressource']", 'null': 'True', 'blank': 'True'}),
86
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
87
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
88
            'title': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '60', 'blank': 'True'})
89
        },
90
        u'agenda.eventtype': {
91
            'Meta': {'object_name': 'EventType'},
92
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
94
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
95
        },
96
        u'auth.group': {
97
            'Meta': {'object_name': 'Group'},
98
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
100
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
101
        },
102
        u'auth.permission': {
103
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
104
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
105
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
106
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
107
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
108
        },
109
        u'auth.user': {
110
            'Meta': {'object_name': 'User'},
111
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
112
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
113
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
114
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
115
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
117
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
120
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
121
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
122
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
123
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
124
        },
125
        u'contenttypes.contenttype': {
126
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
127
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
128
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
129
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
130
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
131
        },
132
        'dossiers.filestate': {
133
            'Meta': {'object_name': 'FileState'},
134
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
135
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
136
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
137
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
138
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
140
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
141
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
142
        },
143
        'dossiers.healthcare': {
144
            'Meta': {'object_name': 'HealthCare'},
145
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
146
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
147
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
148
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
149
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
150
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
151
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
152
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
153
            'start_date': ('django.db.models.fields.DateField', [], {})
154
        },
155
        u'dossiers.patientaddress': {
156
            'Meta': {'object_name': 'PatientAddress'},
157
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
158
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
159
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
160
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
161
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
162
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
164
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
165
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'recipient': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
167
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
168
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
169
        },
170
        u'dossiers.patientcontact': {
171
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'PatientContact', '_ormbases': [u'personnes.People']},
172
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
173
            'ame': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
174
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
175
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
176
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
177
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
178
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
179
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
180
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
181
            'management_code': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ManagementCode']", 'null': 'True', 'blank': 'True'}),
182
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
183
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
184
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
185
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
186
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
187
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
188
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
189
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
190
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
191
        },
192
        u'dossiers.patientrecord': {
193
            'Meta': {'object_name': 'PatientRecord', '_ormbases': [u'dossiers.PatientContact']},
194
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
195
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
196
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
197
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
198
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
199
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
200
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
201
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': u"orm['dossiers.PatientContact']"}),
203
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
204
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
205
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
206
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
207
            'deficiency_auditory': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
208
            'deficiency_autism_and_other_ted': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
209
            'deficiency_behavioral_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
210
            'deficiency_brain_damage': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
211
            'deficiency_in_diagnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
212
            'deficiency_intellectual': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
213
            'deficiency_learning_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
214
            'deficiency_mental_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
215
            'deficiency_metabolic_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
216
            'deficiency_motor': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
217
            'deficiency_other_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
218
            'deficiency_polyhandicap': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
219
            'deficiency_visual': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
220
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
221
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
222
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
223
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
224
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
225
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
226
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
227
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['dossiers.FileState']"}),
228
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHRequest']"}),
229
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHResponse']"}),
230
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
231
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
232
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
233
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
234
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
235
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
236
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
237
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
238
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
239
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
240
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
241
            u'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
242
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'pause_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
244
            'periodic_appointment_transport': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['dossiers.PatientContact']"}),
246
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
247
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
248
            'provenanceplace': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ProvenancePlace']", 'null': 'True', 'blank': 'True'}),
249
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
250
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
251
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
252
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
253
            'simple_appointment_transport': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'size': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '1', 'blank': 'True'}),
255
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': u"orm['ressources.SocialisationDuration']"}),
256
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
257
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
258
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
259
        },
260
        'dossiers.status': {
261
            'Meta': {'object_name': 'Status'},
262
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
263
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
264
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'}),
265
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
266
        },
267
        u'personnes.externaltherapist': {
268
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalTherapist', '_ormbases': [u'personnes.People']},
269
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
270
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
271
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
272
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
273
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
274
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
275
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
276
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
277
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
278
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
279
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
280
        },
281
        u'personnes.externalworker': {
282
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalWorker', '_ormbases': [u'personnes.People']},
283
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
284
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
285
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
286
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
287
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
288
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
289
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
290
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
291
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
292
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
293
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
294
        },
295
        u'personnes.people': {
296
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'People'},
297
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
298
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
299
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
300
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
301
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
302
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
303
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
304
        },
305
        u'personnes.worker': {
306
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'Worker', '_ormbases': [u'personnes.People']},
307
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
308
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
309
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
310
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
311
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
312
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
313
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
314
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
315
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.WorkerType']"})
316
        },
317
        u'ressources.acttype': {
318
            'Meta': {'ordering': "('-display_first', 'name')", 'object_name': 'ActType'},
319
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
320
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
321
            'group': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
322
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
323
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
324
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
325
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
326
        },
327
        u'ressources.advicegiver': {
328
            'Meta': {'object_name': 'AdviceGiver'},
329
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
330
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
331
        },
332
        u'ressources.analysemotive': {
333
            'Meta': {'object_name': 'AnalyseMotive'},
334
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
335
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
336
        },
337
        u'ressources.codecftmea': {
338
            'Meta': {'ordering': "['ordering_code']", 'object_name': 'CodeCFTMEA'},
339
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
340
            'code': ('django.db.models.fields.IntegerField', [], {}),
341
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
342
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
343
            'ordering_code': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
344
        },
345
        u'ressources.familymotive': {
346
            'Meta': {'object_name': 'FamilyMotive'},
347
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
348
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
349
        },
350
        u'ressources.familysituationtype': {
351
            'Meta': {'object_name': 'FamilySituationType'},
352
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
353
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
354
        },
355
        u'ressources.healthcenter': {
356
            'Meta': {'object_name': 'HealthCenter'},
357
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
358
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
359
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
360
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
361
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
362
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
363
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
364
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
365
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
366
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
367
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
368
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
369
            'hc_invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
370
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
371
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
372
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.LargeRegime']"}),
373
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
374
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
375
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
376
        },
377
        u'ressources.job': {
378
            'Meta': {'object_name': 'Job'},
379
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
380
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
381
        },
382
        u'ressources.largeregime': {
383
            'Meta': {'object_name': 'LargeRegime'},
384
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
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.managementcode': {
389
            'Meta': {'object_name': 'ManagementCode'},
390
            'code': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
391
            u'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
        },
395
        u'ressources.maritalstatustype': {
396
            'Meta': {'object_name': 'MaritalStatusType'},
397
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
398
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
399
        },
400
        u'ressources.mdph': {
401
            'Meta': {'object_name': 'MDPH'},
402
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': 'True', 'blank': 'True'}),
403
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
404
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
405
            'department': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
406
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
407
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
408
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
409
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
410
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
411
            'website': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
412
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
413
        },
414
        u'ressources.mdphrequest': {
415
            'Meta': {'object_name': 'MDPHRequest'},
416
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
417
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
418
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
419
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.MDPH']"}),
420
            'start_date': ('django.db.models.fields.DateField', [], {})
421
        },
422
        u'ressources.mdphresponse': {
423
            'Meta': {'object_name': 'MDPHResponse'},
424
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
425
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
426
            'end_date': ('django.db.models.fields.DateField', [], {}),
427
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
428
            'mdph': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.MDPH']"}),
429
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
430
            'rate': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
431
            'start_date': ('django.db.models.fields.DateField', [], {}),
432
            'type_aide': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'})
433
        },
434
        u'ressources.office': {
435
            'Meta': {'object_name': 'Office'},
436
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
437
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
438
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
439
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
440
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
441
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
442
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
443
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
444
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
445
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
446
        },
447
        u'ressources.outmotive': {
448
            'Meta': {'object_name': 'OutMotive'},
449
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
450
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
451
        },
452
        u'ressources.outto': {
453
            'Meta': {'object_name': 'OutTo'},
454
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
455
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
456
        },
457
        u'ressources.parentalauthoritytype': {
458
            'Meta': {'object_name': 'ParentalAuthorityType'},
459
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
460
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
461
        },
462
        u'ressources.parentalcustodytype': {
463
            'Meta': {'object_name': 'ParentalCustodyType'},
464
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
465
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
466
        },
467
        u'ressources.patientrelatedlink': {
468
            'Meta': {'object_name': 'PatientRelatedLink'},
469
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
470
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
471
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
472
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
473
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
474
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
475
        },
476
        u'ressources.provenance': {
477
            'Meta': {'object_name': 'Provenance'},
478
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
479
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
480
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
481
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
482
        },
483
        u'ressources.provenanceplace': {
484
            'Meta': {'object_name': 'ProvenancePlace'},
485
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
486
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
487
        },
488
        u'ressources.ressource': {
489
            'Meta': {'object_name': 'Ressource'},
490
            'etablissement': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Office']"}),
491
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
492
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
493
        },
494
        u'ressources.school': {
495
            'Meta': {'object_name': 'School'},
496
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
497
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
498
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
499
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
500
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
501
            'display_name': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'null': 'True', 'blank': 'True'}),
502
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
503
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
504
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
505
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
506
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
507
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
508
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
509
            'private': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
510
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.SchoolType']"}),
511
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
512
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
513
        },
514
        u'ressources.schoollevel': {
515
            'Meta': {'object_name': 'SchoolLevel'},
516
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
517
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
518
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
519
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'})
520
        },
521
        u'ressources.schooltype': {
522
            'Meta': {'object_name': 'SchoolType'},
523
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
524
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
525
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'})
526
        },
527
        u'ressources.service': {
528
            'Meta': {'object_name': 'Service'},
529
            'description': ('django.db.models.fields.TextField', [], {}),
530
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
531
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
532
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
533
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
534
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
535
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
536
        },
537
        u'ressources.socialisationduration': {
538
            'Meta': {'object_name': 'SocialisationDuration'},
539
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
540
            'contact': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '200', 'null': 'True', 'blank': 'True'}),
541
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
542
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
543
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
544
            'level': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.SchoolLevel']", 'null': 'True', 'blank': 'True'}),
545
            'redoublement': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
546
            'school': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.School']", 'null': 'True', 'blank': 'True'}),
547
            'start_date': ('django.db.models.fields.DateField', [], {})
548
        },
549
        u'ressources.transportcompany': {
550
            'Meta': {'object_name': 'TransportCompany'},
551
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
552
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
553
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
554
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80', 'null': 'True', 'blank': 'True'}),
555
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
556
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
557
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
558
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
559
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
560
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
561
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
562
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
563
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
564
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
565
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
566
        },
567
        u'ressources.transporttype': {
568
            'Meta': {'object_name': 'TransportType'},
569
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
570
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
571
        },
572
        u'ressources.workertype': {
573
            'Meta': {'object_name': 'WorkerType'},
574
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
575
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
576
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
577
        }
578
    }
579

  
580
    complete_apps = ['actes']
581
    symmetrical = True
calebasse/actes/migrations/0007_auto__del_field_act_comment.py
1
# -*- coding: utf-8 -*-
2
from south.utils import datetime_utils as 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
        # Deleting field 'Act.comment'
12
        db.delete_column(u'actes_act', 'comment')
13

  
14

  
15
    def backwards(self, orm):
16
        # Adding field 'Act.comment'
17
        db.add_column(u'actes_act', 'comment',
18
                      self.gf('django.db.models.fields.TextField')(null=True, blank=True),
19
                      keep_default=False)
20

  
21

  
22
    models = {
23
        u'actes.act': {
24
            'Meta': {'ordering': "['-date', 'patient']", 'object_name': 'Act'},
25
            '_duration': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'}),
26
            'act_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ActType']"}),
27
            'attendance': ('django.db.models.fields.CharField', [], {'default': "'absent'", 'max_length': '16'}),
28
            'date': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
29
            'doctors': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['personnes.Worker']", 'symmetrical': 'False'}),
30
            'healthcare': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.HealthCare']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
31
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
            'is_billed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
33
            'is_lost': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
34
            'last_validation_state': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['actes.ActValidationState']"}),
35
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
36
            'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.Event']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
37
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
38
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
39
            'switch_billable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
40
            'time': ('django.db.models.fields.TimeField', [], {'default': 'datetime.time(0, 0)', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
41
            'transport_company': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
42
            'transport_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.TransportType']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
43
            'validation_locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
44
            'valide': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'})
45
        },
46
        'actes.actvalidationstate': {
47
            'Meta': {'ordering': "('-created',)", 'object_name': 'ActValidationState'},
48
            'act': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['actes.Act']"}),
49
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
50
            'auto': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
51
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
52
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['actes.ActValidationState']", 'null': 'True', 'blank': 'True'}),
54
            'state_name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
55
        },
56
        u'actes.validationmessage': {
57
            'Meta': {'object_name': 'ValidationMessage'},
58
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
60
            'validation_date': ('django.db.models.fields.DateTimeField', [], {}),
61
            'what': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
62
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
63
            'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"})
64
        },
65
        u'agenda.event': {
66
            'Meta': {'ordering': "('start_datetime', 'end_datetime', 'title')", 'unique_together': "(('exception_to', 'exception_date'),)", 'object_name': 'Event'},
67
            'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
68
            'create_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
69
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
70
            'description': ('django.db.models.fields.TextField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
71
            'end_datetime': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
72
            'event_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['agenda.EventType']"}),
73
            'exception_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
74
            'exception_to': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'exceptions'", 'null': 'True', 'to': u"orm['agenda.Event']"}),
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'old_ev_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
77
            'old_rr_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
78
            'old_rs_id': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': 'True'}),
79
            'participants': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.People']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
80
            'recurrence_end_date': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
81
            'recurrence_periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
82
            'recurrence_week_day': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
83
            'recurrence_week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'db_index': 'True'}),
84
            'recurrence_week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
85
            'recurrence_week_period': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True', 'db_index': 'True', 'blank': 'True'}),
86
            'recurrence_week_rank': ('django.db.models.fields.IntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
87
            'ressource': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Ressource']", 'null': 'True', 'blank': 'True'}),
88
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['ressources.Service']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
89
            'start_datetime': ('django.db.models.fields.DateTimeField', [], {'db_index': 'True'}),
90
            'title': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '60', 'blank': 'True'})
91
        },
92
        u'agenda.eventtype': {
93
            'Meta': {'object_name': 'EventType'},
94
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95
            'label': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
96
            'rank': ('django.db.models.fields.IntegerField', [], {'default': '0', 'null': 'True', 'blank': 'True'})
97
        },
98
        u'auth.group': {
99
            'Meta': {'object_name': 'Group'},
100
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
102
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
103
        },
104
        u'auth.permission': {
105
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
106
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
107
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
108
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
109
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
110
        },
111
        u'auth.user': {
112
            'Meta': {'object_name': 'User'},
113
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
114
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
115
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
116
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
117
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
119
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
122
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
123
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
124
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
125
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
126
        },
127
        u'contenttypes.contenttype': {
128
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
129
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
130
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
131
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
132
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
133
        },
134
        'dossiers.filestate': {
135
            'Meta': {'object_name': 'FileState'},
136
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
137
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
138
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
139
            'date_selected': ('django.db.models.fields.DateTimeField', [], {}),
140
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
142
            'previous_state': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.FileState']", 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'}),
143
            'status': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dossiers.Status']"})
144
        },
145
        'dossiers.healthcare': {
146
            'Meta': {'object_name': 'HealthCare'},
147
            'agree_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
148
            'author': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']", 'null': 'True', 'blank': 'True'}),
149
            'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000', 'null': 'True', 'blank': 'True'}),
150
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
151
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152
            'insist_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
153
            'patient': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['dossiers.PatientRecord']"}),
154
            'request_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
155
            'start_date': ('django.db.models.fields.DateField', [], {})
156
        },
157
        u'dossiers.patientaddress': {
158
            'Meta': {'object_name': 'PatientAddress'},
159
            'address_complement': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
160
            'city': ('django.db.models.fields.CharField', [], {'max_length': '60', 'null': 'True', 'blank': 'True'}),
161
            'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
162
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '276'}),
163
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
164
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
165
            'number': ('django.db.models.fields.CharField', [], {'max_length': '12', 'null': 'True', 'blank': 'True'}),
166
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
167
            'place_of_life': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'recipient': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
169
            'street': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
170
            'zip_code': ('calebasse.models.ZipCodeField', [], {'max_length': '5', 'null': 'True', 'blank': 'True'})
171
        },
172
        u'dossiers.patientcontact': {
173
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'PatientContact', '_ormbases': [u'personnes.People']},
174
            'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['dossiers.PatientAddress']", 'symmetrical': 'False'}),
175
            'ame': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
176
            'begin_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
177
            'birthdate': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
178
            'birthplace': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
179
            'contact_comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
180
            'end_rights': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
181
            'health_center': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
182
            'job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
183
            'management_code': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.ManagementCode']", 'null': 'True', 'blank': 'True'}),
184
            'mobile': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
185
            'old_contact_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
186
            'other_health_center': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
187
            'parente': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.PatientRelatedLink']", 'null': 'True', 'blank': 'True'}),
188
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
189
            'social_security_id': ('django.db.models.fields.CharField', [], {'max_length': '13', 'null': 'True', 'blank': 'True'}),
190
            'thirdparty_payer': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
191
            'twinning_rank': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
192
            'type_of_contract': ('django.db.models.fields.CharField', [], {'max_length': '2', 'null': 'True', 'blank': 'True'})
193
        },
194
        u'dossiers.patientrecord': {
195
            'Meta': {'object_name': 'PatientRecord', '_ormbases': [u'dossiers.PatientContact']},
196
            'advicegiver': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AdviceGiver']", 'null': 'True', 'blank': 'True'}),
197
            'analysemotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.AnalyseMotive']", 'null': 'True', 'blank': 'True'}),
198
            'apgar_score_one': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
199
            'apgar_score_two': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
200
            'chest_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
201
            'child_custody': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalCustodyType']", 'null': 'True', 'blank': 'True'}),
202
            'comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
203
            'confidential': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'contact_of'", 'symmetrical': 'False', 'to': u"orm['dossiers.PatientContact']"}),
205
            'coordinators': ('django.db.models.fields.related.ManyToManyField', [], {'default': 'None', 'to': u"orm['personnes.Worker']", 'null': 'True', 'symmetrical': 'False', 'blank': 'True'}),
206
            'cranium_perimeter': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '2', 'blank': 'True'}),
207
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
208
            'creator': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['auth.User']"}),
209
            'deficiency_auditory': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
210
            'deficiency_autism_and_other_ted': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
211
            'deficiency_behavioral_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
212
            'deficiency_brain_damage': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
213
            'deficiency_in_diagnostic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
214
            'deficiency_intellectual': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
215
            'deficiency_learning_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
216
            'deficiency_mental_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
217
            'deficiency_metabolic_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
218
            'deficiency_motor': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
219
            'deficiency_other_disorder': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
220
            'deficiency_polyhandicap': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
221
            'deficiency_visual': ('django.db.models.fields.IntegerField', [], {'default': '0', 'max_length': '1'}),
222
            'externaldoctor': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalTherapist']", 'null': 'True', 'blank': 'True'}),
223
            'externalintervener': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['personnes.ExternalWorker']", 'null': 'True', 'blank': 'True'}),
224
            'family_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
225
            'family_situation': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilySituationType']", 'null': 'True', 'blank': 'True'}),
226
            'familymotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.FamilyMotive']", 'null': 'True', 'blank': 'True'}),
227
            'job_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
228
            'job_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.Job']"}),
229
            'last_state': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['dossiers.FileState']"}),
230
            'mdph_requests': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_requests_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHRequest']"}),
231
            'mdph_responses': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mdph_responses_of'", 'symmetrical': 'False', 'to': u"orm['ressources.MDPHResponse']"}),
232
            'mises_1': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises1'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
233
            'mises_2': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises2'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
234
            'mises_3': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'mises3'", 'default': 'None', 'to': u"orm['ressources.CodeCFTMEA']", 'blank': 'True', 'symmetrical': 'False', 'null': 'True'}),
235
            'nationality': ('django.db.models.fields.CharField', [], {'max_length': '70', 'null': 'True', 'blank': 'True'}),
236
            'nb_children_family': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
237
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
238
            'old_old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
239
            'outmotive': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutMotive']", 'null': 'True', 'blank': 'True'}),
240
            'outto': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.OutTo']", 'null': 'True', 'blank': 'True'}),
241
            'paper_id': ('django.db.models.fields.CharField', [], {'max_length': '6', 'null': 'True', 'blank': 'True'}),
242
            'parental_authority': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ParentalAuthorityType']", 'null': 'True', 'blank': 'True'}),
243
            u'patientcontact_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['dossiers.PatientContact']", 'unique': 'True', 'primary_key': 'True'}),
244
            'pause': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'pause_comment': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
246
            'periodic_appointment_transport': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'policyholder': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['dossiers.PatientContact']"}),
248
            'pregnancy_term': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
249
            'provenance': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.Provenance']", 'null': 'True', 'blank': 'True'}),
250
            'provenanceplace': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.ProvenancePlace']", 'null': 'True', 'blank': 'True'}),
251
            'rm_father': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_father'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
252
            'rm_mother': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'rm_mother'", 'null': 'True', 'blank': 'True', 'to': u"orm['ressources.MaritalStatusType']"}),
253
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
254
            'sibship_place': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
255
            'simple_appointment_transport': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
256
            'size': ('django.db.models.fields.DecimalField', [], {'default': 'None', 'null': 'True', 'max_digits': '5', 'decimal_places': '1', 'blank': 'True'}),
257
            'socialisation_durations': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'socialisation_duration_of'", 'symmetrical': 'False', 'to': u"orm['ressources.SocialisationDuration']"}),
258
            'transportcompany': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportCompany']", 'null': 'True', 'blank': 'True'}),
259
            'transporttype': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.TransportType']", 'null': 'True', 'blank': 'True'}),
260
            'weight': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True', 'blank': 'True'})
261
        },
262
        'dossiers.status': {
263
            'Meta': {'object_name': 'Status'},
264
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
265
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
266
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['ressources.Service']", 'symmetrical': 'False'}),
267
            'type': ('django.db.models.fields.CharField', [], {'max_length': '80'})
268
        },
269
        u'personnes.externaltherapist': {
270
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalTherapist', '_ormbases': [u'personnes.People']},
271
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
272
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
273
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
274
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
275
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
276
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
277
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
278
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
279
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
280
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
281
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
282
        },
283
        u'personnes.externalworker': {
284
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalWorker', '_ormbases': [u'personnes.People']},
285
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
286
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
287
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
288
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
289
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
290
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
291
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
292
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
293
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
294
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': u"orm['ressources.WorkerType']"}),
295
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
296
        },
297
        u'personnes.people': {
298
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'People'},
299
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
300
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
301
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
302
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
303
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
304
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
305
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
306
        },
307
        u'personnes.worker': {
308
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'Worker', '_ormbases': [u'personnes.People']},
309
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
310
            'initials': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '5', 'blank': 'True'}),
311
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
312
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
313
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
314
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
315
            u'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
316
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
317
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.WorkerType']"})
318
        },
319
        u'ressources.acttype': {
320
            'Meta': {'ordering': "('-display_first', 'name')", 'object_name': 'ActType'},
321
            'billable': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
322
            'display_first': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
323
            'group': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
324
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
325
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
326
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
327
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.Service']", 'null': 'True', 'blank': 'True'})
328
        },
329
        u'ressources.advicegiver': {
330
            'Meta': {'object_name': 'AdviceGiver'},
331
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
332
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
333
        },
334
        u'ressources.analysemotive': {
335
            'Meta': {'object_name': 'AnalyseMotive'},
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.codecftmea': {
340
            'Meta': {'ordering': "['ordering_code']", 'object_name': 'CodeCFTMEA'},
341
            'axe': ('django.db.models.fields.IntegerField', [], {'max_length': '1'}),
342
            'code': ('django.db.models.fields.IntegerField', [], {}),
343
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
344
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
345
            'ordering_code': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
346
        },
347
        u'ressources.familymotive': {
348
            'Meta': {'object_name': 'FamilyMotive'},
349
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
350
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
351
        },
352
        u'ressources.familysituationtype': {
353
            'Meta': {'object_name': 'FamilySituationType'},
354
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
355
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
356
        },
357
        u'ressources.healthcenter': {
358
            'Meta': {'object_name': 'HealthCenter'},
359
            'abbreviation': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
360
            'accounting_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
361
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
362
            'address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
363
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
364
            'city': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
365
            'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'null': 'True', 'blank': 'True'}),
366
            'computer_center_code': ('django.db.models.fields.CharField', [], {'default': 'True', 'max_length': '8', 'null': 'True'}),
367
            'correspondant': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
368
            'dest_organism': ('django.db.models.fields.CharField', [], {'max_length': '8'}),
369
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
370
            'fax': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
371
            'hc_invoice': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': u"orm['ressources.HealthCenter']", 'null': 'True', 'blank': 'True'}),
372
            'health_fund': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
373
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
374
            'large_regime': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['ressources.LargeRegime']"}),
375
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
376
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
377
            'zip_code': ('django.db.models.fields.CharField', [], {'max_length': '8'})
378
        },
379
        u'ressources.job': {
380
            'Meta': {'object_name': 'Job'},
381
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
382
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
383
        },
384
        u'ressources.largeregime': {
385
            'Meta': {'object_name': 'LargeRegime'},
386
            'code': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
387
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
388
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
389
        },
390
        u'ressources.managementcode': {
391
            'Meta': {'object_name': 'ManagementCode'},
392