Multiples zones par user implémenté
[auf_rh_dae.git] / project / rh / migrations / 0038_auto__add_userprofile.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding model 'UserProfile'
12 db.create_table('rh_userprofile', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='profile', unique=True, to=orm['auth.User'])),
15 ))
16 db.send_create_signal('rh', ['UserProfile'])
17
18 # Adding M2M table for field zones_administratives on 'UserProfile'
19 db.create_table('rh_userprofile_zones_administratives', (
20 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
21 ('userprofile', models.ForeignKey(orm['rh.userprofile'], null=False)),
22 ('zoneadministrative', models.ForeignKey(orm['references.zoneadministrative'], null=False))
23 ))
24 db.create_unique('rh_userprofile_zones_administratives', ['userprofile_id', 'zoneadministrative_id'])
25
26 def backwards(self, orm):
27 # Deleting model 'UserProfile'
28 db.delete_table('rh_userprofile')
29
30 # Removing M2M table for field zones_administratives on 'UserProfile'
31 db.delete_table('rh_userprofile_zones_administratives')
32
33
34 models = {
35 'auth.group': {
36 'Meta': {'object_name': 'Group'},
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
39 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
40 },
41 'auth.permission': {
42 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
43 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
44 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
47 },
48 'auth.user': {
49 'Meta': {'object_name': 'User'},
50 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
51 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
52 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
53 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
54 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
56 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
58 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
59 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
60 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
61 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
62 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
63 },
64 'contenttypes.contenttype': {
65 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
66 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
69 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
70 },
71 'references.bureau': {
72 'Meta': {'ordering': "['nom']", 'object_name': 'Bureau', 'db_table': "u'ref_bureau'", 'managed': 'False'},
73 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
74 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
75 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Implantation']", 'db_column': "'implantation'"}),
77 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
78 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
79 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
80 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"})
81 },
82 'references.implantation': {
83 'Meta': {'ordering': "['nom']", 'object_name': 'Implantation', 'db_table': "u'ref_implantation'", 'managed': 'False'},
84 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
85 'adresse_physique_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
86 'adresse_physique_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
87 'adresse_physique_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
88 'adresse_physique_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
89 'adresse_physique_pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'impl_adresse_physique'", 'to_field': "'code'", 'db_column': "'adresse_physique_pays'", 'to': "orm['references.Pays']"}),
90 'adresse_physique_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
91 'adresse_physique_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
92 'adresse_physique_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
93 'adresse_physique_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
94 'adresse_physique_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
95 'adresse_postale_boite_postale': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
96 'adresse_postale_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
97 'adresse_postale_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
98 'adresse_postale_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
99 'adresse_postale_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
100 'adresse_postale_pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'impl_adresse_postale'", 'to_field': "'code'", 'db_column': "'adresse_postale_pays'", 'to': "orm['references.Pays']"}),
101 'adresse_postale_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
102 'adresse_postale_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
103 'adresse_postale_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
104 'adresse_postale_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
105 'adresse_postale_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
106 'bureau_rattachement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Implantation']", 'db_column': "'bureau_rattachement'"}),
107 'code_meteo': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
108 'commentaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
109 'courriel': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
110 'courriel_interne': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
111 'date_extension': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
112 'date_fermeture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
113 'date_inauguration': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
114 'date_ouverture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
115 'fax': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
116 'fax_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
117 'fuseau_horaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
118 'hebergement_convention': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
119 'hebergement_convention_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
120 'hebergement_etablissement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'modif_date': ('django.db.models.fields.DateField', [], {}),
123 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
124 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
125 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
126 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"}),
127 'remarque': ('django.db.models.fields.TextField', [], {}),
128 'responsable_implantation': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
129 'statut': ('django.db.models.fields.IntegerField', [], {}),
130 'telephone': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
131 'telephone_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
132 'type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
133 'url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
134 'zone_administrative': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.ZoneAdministrative']"})
135 },
136 'references.pays': {
137 'Meta': {'ordering': "['nom']", 'object_name': 'Pays', 'db_table': "u'ref_pays'", 'managed': 'False'},
138 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
139 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '2'}),
140 'code_bureau': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Bureau']", 'to_field': "'code'", 'null': 'True', 'db_column': "'code_bureau'", 'blank': 'True'}),
141 'code_iso3': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '3'}),
142 'developpement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
143 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144 'monnaie': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
145 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
146 'nord_sud': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
147 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"})
148 },
149 'references.region': {
150 'Meta': {'ordering': "['nom']", 'object_name': 'Region', 'db_table': "u'ref_region'", 'managed': 'False'},
151 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
152 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
153 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
154 'implantation_bureau': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'gere_region'", 'null': 'True', 'db_column': "'implantation_bureau'", 'to': "orm['references.Implantation']"}),
155 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
156 },
157 'references.zoneadministrative': {
158 'Meta': {'ordering': "['nom']", 'object_name': 'ZoneAdministrative', 'db_table': "'ref_zoneadministrative'", 'managed': 'False'},
159 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
160 'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'primary_key': 'True'}),
161 'nom': ('django.db.models.fields.CharField', [], {'max_length': '100'})
162 },
163 'reversion.revision': {
164 'Meta': {'object_name': 'Revision'},
165 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
166 'date_created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
167 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168 'manager_slug': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '200', 'db_index': 'True'}),
169 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'})
170 },
171 'rh.ayantdroit': {
172 'Meta': {'ordering': "['nom']", 'object_name': 'AyantDroit'},
173 'date_naissance': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
174 'employe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ayantdroits'", 'db_column': "'employe'", 'to': "orm['rh.Employe']"}),
175 'genre': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
176 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
177 'lien_parente': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True', 'blank': 'True'}),
178 'nationalite': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'ayantdroits_nationalite'", 'db_column': "'nationalite'", 'to_field': "'code'", 'to': "orm['references.Pays']", 'blank': 'True', 'null': 'True'}),
179 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
180 'nom_affichage': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
181 'prenom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
182 },
183 'rh.ayantdroitcommentaire': {
184 'Meta': {'ordering': "['-date_creation']", 'object_name': 'AyantDroitCommentaire'},
185 'ayant_droit': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'commentaires'", 'db_column': "'ayant_droit'", 'to': "orm['rh.AyantDroit']"}),
186 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
187 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'owner'", 'to': "orm['auth.User']"}),
189 'texte': ('django.db.models.fields.TextField', [], {})
190 },
191 'rh.categorieemploi': {
192 'Meta': {'ordering': "('nom',)", 'object_name': 'CategorieEmploi'},
193 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
195 },
196 'rh.classement': {
197 'Meta': {'ordering': "['type', 'echelon', 'degre', 'coefficient']", 'object_name': 'Classement'},
198 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199 'coefficient': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
200 'commentaire': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
201 'degre': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
202 'echelon': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
203 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
204 'type': ('django.db.models.fields.CharField', [], {'max_length': '10'})
205 },
206 'rh.contrat': {
207 'Meta': {'ordering': "['dossier__employe__nom']", 'object_name': 'Contrat'},
208 'date_debut': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
209 'date_fin': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
210 'dossier': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_contrats'", 'db_column': "'dossier'", 'to': "orm['rh.Dossier']"}),
211 'fichier': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213 'type_contrat': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'type_contrat'", 'to': "orm['rh.TypeContrat']"})
214 },
215 'rh.devise': {
216 'Meta': {'ordering': "['code']", 'object_name': 'Devise'},
217 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
218 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '10'}),
219 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
220 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
221 },
222 'rh.dossier': {
223 'Meta': {'ordering': "['employe__nom']", 'object_name': 'Dossier'},
224 'classement': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'classement'", 'to': "orm['rh.Classement']"}),
225 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
226 'date_debut': ('django.db.models.fields.DateField', [], {'db_index': 'True'}),
227 'date_fin': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
228 'date_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'null': 'True', 'blank': 'True'}),
229 'employe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_dossiers'", 'db_column': "'employe'", 'to': "orm['rh.Employe']"}),
230 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
231 'organisme_bstg': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'organisme_bstg'", 'to': "orm['rh.OrganismeBstg']"}),
232 'poste': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_dossiers'", 'db_column': "'poste'", 'to': "orm['rh.Poste']"}),
233 'principal': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
234 'regime_travail': ('django.db.models.fields.DecimalField', [], {'default': "'100.00'", 'null': 'True', 'max_digits': '12', 'decimal_places': '2'}),
235 'regime_travail_nb_heure_semaine': ('django.db.models.fields.DecimalField', [], {'default': "'35.00'", 'null': 'True', 'max_digits': '12', 'decimal_places': '2'}),
236 'remplacement': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237 'remplacement_de': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['rh.Dossier']"}),
238 'statut': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'to': "orm['rh.Statut']"}),
239 'statut_residence': ('django.db.models.fields.CharField', [], {'default': "'local'", 'max_length': '10', 'null': 'True'})
240 },
241 'rh.dossiercommentaire': {
242 'Meta': {'ordering': "['-date_creation']", 'object_name': 'DossierCommentaire'},
243 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
244 'dossier': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'commentaires'", 'db_column': "'dossier'", 'to': "orm['rh.Dossier']"}),
245 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
246 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'owner'", 'to': "orm['auth.User']"}),
247 'texte': ('django.db.models.fields.TextField', [], {})
248 },
249 'rh.dossiercomparaison': {
250 'Meta': {'object_name': 'DossierComparaison'},
251 'devise': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['rh.Devise']"}),
252 'dossier': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_comparaisons'", 'to': "orm['rh.Dossier']"}),
253 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['references.Implantation']"}),
255 'montant': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
256 'personne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
257 'poste': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
258 },
259 'rh.dossierpiece': {
260 'Meta': {'ordering': "['nom']", 'object_name': 'DossierPiece'},
261 'dossier': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_dossierpieces'", 'db_column': "'dossier'", 'to': "orm['rh.Dossier']"}),
262 'fichier': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
263 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
264 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
265 },
266 'rh.employe': {
267 'Meta': {'ordering': "['nom', 'prenom']", 'object_name': 'Employe'},
268 'adresse': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
269 'code_postal': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
270 'courriel_perso': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
271 'date_entree': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
272 'date_naissance': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
273 'genre': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
274 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
275 'nationalite': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'employes_nationalite'", 'db_column': "'nationalite'", 'to_field': "'code'", 'to': "orm['references.Pays']", 'blank': 'True', 'null': 'True'}),
276 'nb_postes': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
277 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
278 'nom_affichage': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
279 'pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'employes'", 'db_column': "'pays'", 'to_field': "'code'", 'to': "orm['references.Pays']", 'blank': 'True', 'null': 'True'}),
280 'prenom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
281 'province': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
282 'situation_famille': ('django.db.models.fields.CharField', [], {'max_length': '1', 'null': 'True', 'blank': 'True'}),
283 'tel_cellulaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
284 'tel_domicile': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
285 'ville': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
286 },
287 'rh.employecommentaire': {
288 'Meta': {'object_name': 'EmployeCommentaire'},
289 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
290 'employe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'commentaires'", 'db_column': "'employe'", 'to': "orm['rh.Employe']"}),
291 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
292 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'owner'", 'to': "orm['auth.User']"}),
293 'texte': ('django.db.models.fields.TextField', [], {})
294 },
295 'rh.employepiece': {
296 'Meta': {'ordering': "['nom']", 'object_name': 'EmployePiece'},
297 'employe': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pieces'", 'db_column': "'employe'", 'to': "orm['rh.Employe']"}),
298 'fichier': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
299 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
300 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
301 },
302 'rh.familleprofessionnelle': {
303 'Meta': {'ordering': "('nom',)", 'object_name': 'FamilleProfessionnelle'},
304 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
305 'nom': ('django.db.models.fields.CharField', [], {'max_length': '100'})
306 },
307 'rh.modificationtraite': {
308 'Meta': {'object_name': 'ModificationTraite'},
309 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
310 'revision': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['reversion.Revision']"})
311 },
312 'rh.organismebstg': {
313 'Meta': {'ordering': "['type', 'nom']", 'object_name': 'OrganismeBstg'},
314 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
315 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
316 'pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'organismes_bstg'", 'db_column': "'pays'", 'to_field': "'code'", 'to': "orm['references.Pays']", 'blank': 'True', 'null': 'True'}),
317 'type': ('django.db.models.fields.CharField', [], {'max_length': '10'})
318 },
319 'rh.poste': {
320 'Meta': {'ordering': "['nom']", 'object_name': 'Poste'},
321 'appel': ('django.db.models.fields.CharField', [], {'default': "'interne'", 'max_length': '10', 'null': 'True'}),
322 'autre_max': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
323 'autre_min': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
324 'classement_max': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'classement_max'", 'to': "orm['rh.Classement']"}),
325 'classement_min': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'classement_min'", 'to': "orm['rh.Classement']"}),
326 'comp_autre_max': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
327 'comp_autre_min': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
328 'comp_fonctionpub_max': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
329 'comp_fonctionpub_min': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
330 'comp_locale_max': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
331 'comp_locale_min': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
332 'comp_ong_max': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
333 'comp_ong_min': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
334 'comp_universite_max': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
335 'comp_universite_min': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
336 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
337 'date_debut': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
338 'date_fin': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
339 'date_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'null': 'True', 'blank': 'True'}),
340 'devise_comparaison': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'devise_comparaison'", 'to': "orm['rh.Devise']"}),
341 'devise_max': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'db_column': "'devise_max'", 'to': "orm['rh.Devise']"}),
342 'devise_min': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'db_column': "'devise_min'", 'to': "orm['rh.Devise']"}),
343 'expatrie': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}),
344 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
345 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'implantation'", 'to': "orm['references.Implantation']"}),
346 'indemn_max': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
347 'indemn_min': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
348 'justification': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
349 'local': ('django.db.models.fields.NullBooleanField', [], {'default': 'True', 'null': 'True', 'blank': 'True'}),
350 'mise_a_disposition': ('django.db.models.fields.NullBooleanField', [], {'default': 'False', 'null': 'True', 'blank': 'True'}),
351 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
352 'nom_feminin': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
353 'regime_travail': ('django.db.models.fields.DecimalField', [], {'default': "'100.00'", 'null': 'True', 'max_digits': '12', 'decimal_places': '2'}),
354 'regime_travail_nb_heure_semaine': ('django.db.models.fields.DecimalField', [], {'default': "'35.00'", 'null': 'True', 'max_digits': '12', 'decimal_places': '2'}),
355 'responsable': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'db_column': "'responsable'", 'to': "orm['rh.Poste']"}),
356 'salaire_max': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
357 'salaire_min': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '2'}),
358 'service': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_postes'", 'null': 'True', 'db_column': "'service'", 'to': "orm['rh.Service']"}),
359 'type_poste': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'null': 'True', 'db_column': "'type_poste'", 'to': "orm['rh.TypePoste']"}),
360 'vacant': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
361 'valeur_point_max': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'valeur_point_max'", 'to': "orm['rh.ValeurPoint']"}),
362 'valeur_point_min': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'valeur_point_min'", 'to': "orm['rh.ValeurPoint']"})
363 },
364 'rh.postecommentaire': {
365 'Meta': {'ordering': "['-date_creation']", 'object_name': 'PosteCommentaire'},
366 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
367 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
368 'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'owner'", 'to': "orm['auth.User']"}),
369 'poste': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'commentaires'", 'db_column': "'poste'", 'to': "orm['rh.Poste']"}),
370 'texte': ('django.db.models.fields.TextField', [], {})
371 },
372 'rh.postecomparaison': {
373 'Meta': {'object_name': 'PosteComparaison'},
374 'devise': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['rh.Devise']"}),
375 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
376 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'to': "orm['references.Implantation']"}),
377 'montant': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
378 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
379 'poste': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_comparaisons_internes'", 'to': "orm['rh.Poste']"})
380 },
381 'rh.postefinancement': {
382 'Meta': {'ordering': "['type']", 'object_name': 'PosteFinancement'},
383 'commentaire': ('django.db.models.fields.TextField', [], {}),
384 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
385 'poste': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_financements'", 'db_column': "'poste'", 'to': "orm['rh.Poste']"}),
386 'pourcentage': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '2'}),
387 'type': ('django.db.models.fields.CharField', [], {'max_length': '1'})
388 },
389 'rh.postepiece': {
390 'Meta': {'ordering': "['nom']", 'object_name': 'PostePiece'},
391 'fichier': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
392 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
393 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
394 'poste': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_pieces'", 'db_column': "'poste'", 'to': "orm['rh.Poste']"})
395 },
396 'rh.remuneration': {
397 'Meta': {'object_name': 'Remuneration'},
398 'commentaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
399 'date_debut': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
400 'date_fin': ('django.db.models.fields.DateField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}),
401 'devise': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'devise'", 'to': "orm['rh.Devise']"}),
402 'dossier': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_remunerations'", 'db_column': "'dossier'", 'to': "orm['rh.Dossier']"}),
403 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
404 'montant': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '12', 'decimal_places': '2', 'blank': 'True'}),
405 'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'type'", 'to': "orm['rh.TypeRemuneration']"}),
406 'type_revalorisation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'type_revalorisation'", 'to': "orm['rh.TypeRevalorisation']"})
407 },
408 'rh.responsableimplantation': {
409 'Meta': {'ordering': "['implantation__nom']", 'object_name': 'ResponsableImplantation'},
410 'employe': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'+'", 'null': 'True', 'db_column': "'employe'", 'to': "orm['rh.Employe']"}),
411 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
412 'implantation': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'responsable'", 'unique': 'True', 'db_column': "'implantation'", 'to': "orm['references.Implantation']"})
413 },
414 'rh.service': {
415 'Meta': {'ordering': "['nom']", 'object_name': 'Service'},
416 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
417 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
418 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
419 },
420 'rh.statut': {
421 'Meta': {'ordering': "['code']", 'object_name': 'Statut'},
422 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
423 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '25'}),
424 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
425 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
426 },
427 'rh.tauxchange': {
428 'Meta': {'ordering': "['-annee', 'devise__code']", 'unique_together': "(('devise', 'annee'),)", 'object_name': 'TauxChange'},
429 'annee': ('django.db.models.fields.IntegerField', [], {}),
430 'devise': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rh.Devise']", 'db_column': "'devise'"}),
431 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
432 'taux': ('django.db.models.fields.FloatField', [], {})
433 },
434 'rh.typecontrat': {
435 'Meta': {'ordering': "['nom']", 'object_name': 'TypeContrat'},
436 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
437 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
438 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
439 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255'})
440 },
441 'rh.typeposte': {
442 'Meta': {'ordering': "['nom']", 'object_name': 'TypePoste'},
443 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
444 'categorie_emploi': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'categorie_emploi'", 'to': "orm['rh.CategorieEmploi']"}),
445 'famille_professionnelle': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'types_de_poste'", 'null': 'True', 'to': "orm['rh.FamilleProfessionnelle']"}),
446 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
447 'is_responsable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
448 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
449 'nom_feminin': ('django.db.models.fields.CharField', [], {'max_length': '255'})
450 },
451 'rh.typeremuneration': {
452 'Meta': {'ordering': "['nom']", 'object_name': 'TypeRemuneration'},
453 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
454 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
455 'nature_remuneration': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
456 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
457 'type_paiement': ('django.db.models.fields.CharField', [], {'max_length': '30'})
458 },
459 'rh.typerevalorisation': {
460 'Meta': {'ordering': "['nom']", 'object_name': 'TypeRevalorisation'},
461 'archive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
462 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
463 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
464 },
465 'rh.userprofile': {
466 'Meta': {'object_name': 'UserProfile'},
467 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
468 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'profile'", 'unique': 'True', 'to': "orm['auth.User']"}),
469 'zones_administratives': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['references.ZoneAdministrative']", 'symmetrical': 'False'})
470 },
471 'rh.valeurpoint': {
472 'Meta': {'ordering': "['-annee', 'implantation__nom']", 'unique_together': "(('implantation', 'annee'),)", 'object_name': 'ValeurPoint'},
473 'annee': ('django.db.models.fields.IntegerField', [], {}),
474 'devise': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'devise'", 'to': "orm['rh.Devise']"}),
475 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
476 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'rh_valeur_point'", 'db_column': "'implantation'", 'to': "orm['references.Implantation']"}),
477 'valeur': ('django.db.models.fields.FloatField', [], {'null': 'True'})
478 }
479 }
480
481 complete_apps = ['rh']