Project

General

Profile

« Previous | Next » 

Revision 6eaf55c7

Added by Mikaël Ates over 9 years ago

actes: add data migration to populate already_billed field of Act model.

View differences:

calebasse/actes/migrations/0009_set_act_already_billed.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
        orm.Act.objects.exclude(invoice=None).update(already_billed=True)
11

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

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

  
619
    complete_apps = ['facturation', 'actes', 'actes']
620
    symmetrical = True

Also available in: Unified diff