Project

General

Profile

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

calebasse / calebasse / personnes / migrations / 0001_initial.py @ 0d4bf0b4

1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

    
7

    
8
class Migration(SchemaMigration):
9

    
10
    def forwards(self, orm):
11
        # Adding model 'Role'
12
        db.create_table('personnes_role', (
13
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14
            ('name', self.gf('django.db.models.fields.CharField')(max_length=150)),
15
        ))
16
        db.send_create_signal('personnes', ['Role'])
17

    
18
        # Adding M2M table for field users on 'Role'
19
        db.create_table('personnes_role_users', (
20
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
21
            ('role', models.ForeignKey(orm['personnes.role'], null=False)),
22
            ('user', models.ForeignKey(orm['auth.user'], null=False))
23
        ))
24
        db.create_unique('personnes_role_users', ['role_id', 'user_id'])
25

    
26
        # Adding model 'People'
27
        db.create_table('personnes_people', (
28
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
29
            ('last_name', self.gf('django.db.models.fields.CharField')(max_length=128, db_index=True)),
30
            ('first_name', self.gf('django.db.models.fields.CharField')(max_length=128, null=True, blank=True)),
31
            ('display_name', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
32
            ('gender', self.gf('django.db.models.fields.IntegerField')(max_length=1, null=True, blank=True)),
33
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)),
34
            ('phone', self.gf('calebasse.models.PhoneNumberField')(max_length=20, null=True, blank=True)),
35
        ))
36
        db.send_create_signal('personnes', ['People'])
37

    
38
        # Adding model 'Worker'
39
        db.create_table('personnes_worker', (
40
            ('people_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['personnes.People'], unique=True, primary_key=True)),
41
            ('type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.WorkerType'])),
42
            ('enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
43
            ('old_camsp_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
44
            ('old_cmpp_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
45
            ('old_sessad_dys_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
46
            ('old_sessad_ted_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
47
        ))
48
        db.send_create_signal('personnes', ['Worker'])
49

    
50
        # Adding M2M table for field services on 'Worker'
51
        db.create_table('personnes_worker_services', (
52
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
53
            ('worker', models.ForeignKey(orm['personnes.worker'], null=False)),
54
            ('service', models.ForeignKey(orm['ressources.service'], null=False))
55
        ))
56
        db.create_unique('personnes_worker_services', ['worker_id', 'service_id'])
57

    
58
        # Adding model 'ExternalWorker'
59
        db.create_table('personnes_externalworker', (
60
            ('people_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['personnes.People'], unique=True, primary_key=True)),
61
            ('description', self.gf('django.db.models.fields.TextField')(default=None, null=True, blank=True)),
62
            ('address', self.gf('django.db.models.fields.CharField')(default=None, max_length=120, null=True, blank=True)),
63
            ('address_complement', self.gf('django.db.models.fields.CharField')(default=None, max_length=120, null=True, blank=True)),
64
            ('zip_code', self.gf('calebasse.models.ZipCodeField')(default=None, max_length=5, null=True, blank=True)),
65
            ('city', self.gf('django.db.models.fields.CharField')(default=None, max_length=80, null=True, blank=True)),
66
            ('phone_work', self.gf('calebasse.models.PhoneNumberField')(default=None, max_length=20, null=True, blank=True)),
67
            ('fax', self.gf('django.db.models.fields.CharField')(default=None, max_length=30, null=True, blank=True)),
68
            ('type', self.gf('django.db.models.fields.related.ForeignKey')(default=18, to=orm['ressources.WorkerType'])),
69
            ('old_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
70
            ('old_service', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
71
        ))
72
        db.send_create_signal('personnes', ['ExternalWorker'])
73

    
74
        # Adding model 'ExternalTherapist'
75
        db.create_table('personnes_externaltherapist', (
76
            ('people_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['personnes.People'], unique=True, primary_key=True)),
77
            ('description', self.gf('django.db.models.fields.TextField')(default=None, null=True, blank=True)),
78
            ('address', self.gf('django.db.models.fields.CharField')(default=None, max_length=120, null=True, blank=True)),
79
            ('address_complement', self.gf('django.db.models.fields.CharField')(default=None, max_length=120, null=True, blank=True)),
80
            ('zip_code', self.gf('calebasse.models.ZipCodeField')(default=None, max_length=5, null=True, blank=True)),
81
            ('city', self.gf('django.db.models.fields.CharField')(default=None, max_length=80, null=True, blank=True)),
82
            ('phone_work', self.gf('calebasse.models.PhoneNumberField')(default=None, max_length=20, null=True, blank=True)),
83
            ('fax', self.gf('django.db.models.fields.CharField')(default=None, max_length=30, null=True, blank=True)),
84
            ('type', self.gf('django.db.models.fields.related.ForeignKey')(default=18, to=orm['ressources.WorkerType'])),
85
            ('old_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
86
            ('old_service', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
87
        ))
88
        db.send_create_signal('personnes', ['ExternalTherapist'])
89

    
90
        # Adding model 'UserWorker'
91
        db.create_table('personnes_userworker', (
92
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
93
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
94
            ('worker', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['personnes.Worker'])),
95
        ))
96
        db.send_create_signal('personnes', ['UserWorker'])
97

    
98
        # Adding model 'SchoolTeacher'
99
        db.create_table('personnes_schoolteacher', (
100
            ('people_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['personnes.People'], unique=True, primary_key=True)),
101
            ('role', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.SchoolTeacherRole'])),
102
        ))
103
        db.send_create_signal('personnes', ['SchoolTeacher'])
104

    
105
        # Adding M2M table for field schools on 'SchoolTeacher'
106
        db.create_table('personnes_schoolteacher_schools', (
107
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
108
            ('schoolteacher', models.ForeignKey(orm['personnes.schoolteacher'], null=False)),
109
            ('school', models.ForeignKey(orm['ressources.school'], null=False))
110
        ))
111
        db.create_unique('personnes_schoolteacher_schools', ['schoolteacher_id', 'school_id'])
112

    
113
        # Adding model 'TimeTable'
114
        db.create_table('personnes_timetable', (
115
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
116
            ('worker', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['personnes.Worker'])),
117
            ('weekday', self.gf('django.db.models.fields.PositiveIntegerField')()),
118
            ('start_time', self.gf('django.db.models.fields.TimeField')()),
119
            ('end_time', self.gf('django.db.models.fields.TimeField')()),
120
            ('start_date', self.gf('django.db.models.fields.DateField')()),
121
            ('end_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
122
            ('periodicity', self.gf('django.db.models.fields.PositiveIntegerField')(default=1, null=True, blank=True)),
123
            ('week_offset', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
124
            ('week_period', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
125
            ('week_parity', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
126
            ('week_rank', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
127
        ))
128
        db.send_create_signal('personnes', ['TimeTable'])
129

    
130
        # Adding M2M table for field services on 'TimeTable'
131
        db.create_table('personnes_timetable_services', (
132
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
133
            ('timetable', models.ForeignKey(orm['personnes.timetable'], null=False)),
134
            ('service', models.ForeignKey(orm['ressources.service'], null=False))
135
        ))
136
        db.create_unique('personnes_timetable_services', ['timetable_id', 'service_id'])
137

    
138
        # Adding model 'Holiday'
139
        db.create_table('personnes_holiday', (
140
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
141
            ('holiday_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.HolidayType'])),
142
            ('worker', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['personnes.Worker'], null=True, blank=True)),
143
            ('service', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ressources.Service'], null=True, blank=True)),
144
            ('start_date', self.gf('django.db.models.fields.DateField')()),
145
            ('end_date', self.gf('django.db.models.fields.DateField')()),
146
            ('start_time', self.gf('django.db.models.fields.TimeField')(null=True, blank=True)),
147
            ('end_time', self.gf('django.db.models.fields.TimeField')(null=True, blank=True)),
148
            ('comment', self.gf('django.db.models.fields.TextField')(blank=True)),
149
        ))
150
        db.send_create_signal('personnes', ['Holiday'])
151

    
152

    
153
    def backwards(self, orm):
154
        # Deleting model 'Role'
155
        db.delete_table('personnes_role')
156

    
157
        # Removing M2M table for field users on 'Role'
158
        db.delete_table('personnes_role_users')
159

    
160
        # Deleting model 'People'
161
        db.delete_table('personnes_people')
162

    
163
        # Deleting model 'Worker'
164
        db.delete_table('personnes_worker')
165

    
166
        # Removing M2M table for field services on 'Worker'
167
        db.delete_table('personnes_worker_services')
168

    
169
        # Deleting model 'ExternalWorker'
170
        db.delete_table('personnes_externalworker')
171

    
172
        # Deleting model 'ExternalTherapist'
173
        db.delete_table('personnes_externaltherapist')
174

    
175
        # Deleting model 'UserWorker'
176
        db.delete_table('personnes_userworker')
177

    
178
        # Deleting model 'SchoolTeacher'
179
        db.delete_table('personnes_schoolteacher')
180

    
181
        # Removing M2M table for field schools on 'SchoolTeacher'
182
        db.delete_table('personnes_schoolteacher_schools')
183

    
184
        # Deleting model 'TimeTable'
185
        db.delete_table('personnes_timetable')
186

    
187
        # Removing M2M table for field services on 'TimeTable'
188
        db.delete_table('personnes_timetable_services')
189

    
190
        # Deleting model 'Holiday'
191
        db.delete_table('personnes_holiday')
192

    
193

    
194
    models = {
195
        'auth.group': {
196
            'Meta': {'object_name': 'Group'},
197
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
198
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
199
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
200
        },
201
        'auth.permission': {
202
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
203
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
204
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
205
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
206
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
207
        },
208
        'auth.user': {
209
            'Meta': {'object_name': 'User'},
210
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
211
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
212
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
213
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
214
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
215
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
216
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
217
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
218
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
219
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
220
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
221
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
222
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
223
        },
224
        'contenttypes.contenttype': {
225
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
226
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
227
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
228
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
229
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
230
        },
231
        'personnes.externaltherapist': {
232
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalTherapist', '_ormbases': ['personnes.People']},
233
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
234
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
235
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
236
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
237
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
238
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
239
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
240
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
241
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
242
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
243
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
244
        },
245
        'personnes.externalworker': {
246
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'ExternalWorker', '_ormbases': ['personnes.People']},
247
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
248
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
249
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
250
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
251
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
252
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
253
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
254
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
255
            'phone_work': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
256
            'type': ('django.db.models.fields.related.ForeignKey', [], {'default': '18', 'to': "orm['ressources.WorkerType']"}),
257
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
258
        },
259
        'personnes.holiday': {
260
            'Meta': {'ordering': "('start_date', 'start_time')", 'object_name': 'Holiday'},
261
            'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
262
            'end_date': ('django.db.models.fields.DateField', [], {}),
263
            'end_time': ('django.db.models.fields.TimeField', [], {'null': 'True', 'blank': 'True'}),
264
            'holiday_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.HolidayType']"}),
265
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
266
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
267
            'start_date': ('django.db.models.fields.DateField', [], {}),
268
            'start_time': ('django.db.models.fields.TimeField', [], {'null': 'True', 'blank': 'True'}),
269
            'worker': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['personnes.Worker']", 'null': 'True', 'blank': 'True'})
270
        },
271
        'personnes.people': {
272
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'People'},
273
            'display_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'db_index': 'True'}),
274
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
275
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
276
            'gender': ('django.db.models.fields.IntegerField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
277
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
278
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'db_index': 'True'}),
279
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'})
280
        },
281
        'personnes.role': {
282
            'Meta': {'ordering': "['name']", 'object_name': 'Role'},
283
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
284
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
285
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'})
286
        },
287
        'personnes.schoolteacher': {
288
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'SchoolTeacher', '_ormbases': ['personnes.People']},
289
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
290
            'role': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolTeacherRole']"}),
291
            'schools': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.School']", 'symmetrical': 'False'})
292
        },
293
        'personnes.timetable': {
294
            'Meta': {'object_name': 'TimeTable'},
295
            'end_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
296
            'end_time': ('django.db.models.fields.TimeField', [], {}),
297
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
298
            'periodicity': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'null': 'True', 'blank': 'True'}),
299
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'}),
300
            'start_date': ('django.db.models.fields.DateField', [], {}),
301
            'start_time': ('django.db.models.fields.TimeField', [], {}),
302
            'week_offset': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
303
            'week_parity': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
304
            'week_period': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
305
            'week_rank': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
306
            'weekday': ('django.db.models.fields.PositiveIntegerField', [], {}),
307
            'worker': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['personnes.Worker']"})
308
        },
309
        'personnes.userworker': {
310
            'Meta': {'object_name': 'UserWorker'},
311
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
312
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'}),
313
            'worker': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['personnes.Worker']"})
314
        },
315
        'personnes.worker': {
316
            'Meta': {'ordering': "['last_name', 'first_name']", 'object_name': 'Worker', '_ormbases': ['personnes.People']},
317
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
318
            'old_camsp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
319
            'old_cmpp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
320
            'old_sessad_dys_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
321
            'old_sessad_ted_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
322
            'people_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['personnes.People']", 'unique': 'True', 'primary_key': 'True'}),
323
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['ressources.Service']", 'null': 'True', 'blank': 'True'}),
324
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.WorkerType']"})
325
        },
326
        'ressources.holidaytype': {
327
            'Meta': {'object_name': 'HolidayType'},
328
            'for_group': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
329
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
330
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
331
        },
332
        'ressources.school': {
333
            'Meta': {'object_name': 'School'},
334
            'address': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
335
            'address_complement': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '120', 'null': 'True', 'blank': 'True'}),
336
            'city': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '80', 'null': 'True', 'blank': 'True'}),
337
            'description': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
338
            'director_name': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '70', 'null': 'True', 'blank': 'True'}),
339
            'email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
340
            'fax': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '30', 'null': 'True', 'blank': 'True'}),
341
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
342
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
343
            'old_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
344
            'old_service': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
345
            'phone': ('calebasse.models.PhoneNumberField', [], {'default': 'None', 'max_length': '20', 'null': 'True', 'blank': 'True'}),
346
            'school_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ressources.SchoolType']"}),
347
            'zip_code': ('calebasse.models.ZipCodeField', [], {'default': 'None', 'max_length': '5', 'null': 'True', 'blank': 'True'})
348
        },
349
        'ressources.schoolteacherrole': {
350
            'Meta': {'object_name': 'SchoolTeacherRole'},
351
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
352
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
353
        },
354
        'ressources.schooltype': {
355
            'Meta': {'object_name': 'SchoolType'},
356
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
357
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
358
            'services': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ressources.Service']", 'symmetrical': 'False'})
359
        },
360
        'ressources.service': {
361
            'Meta': {'object_name': 'Service'},
362
            'description': ('django.db.models.fields.TextField', [], {}),
363
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
364
            'fax': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
365
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
366
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'}),
367
            'phone': ('calebasse.models.PhoneNumberField', [], {'max_length': '20'}),
368
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
369
        },
370
        'ressources.workertype': {
371
            'Meta': {'object_name': 'WorkerType'},
372
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
373
            'intervene': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
374
            'name': ('django.db.models.fields.CharField', [], {'max_length': '150'})
375
        }
376
    }
377

    
378
    complete_apps = ['personnes']
(1-1/5)