Project

General

Profile

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

calebasse / calebasse / actes / migrations / 0009_set_act_already_billed.py @ 5978c161

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
        orm.Act.objects.filter(is_billed=True).update(already_billed=True)
11
        orm.Act.objects.exclude(invoice=None).update(already_billed=True)
12

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

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

    
620
    complete_apps = ['facturation', 'actes', 'actes']
621
    symmetrical = True
(9-9/10)