Ajout modele OffreEmploiEvaluateur et la mécanique
[auf_rh_dae.git] / project / recrutement / migrations / 0005_auto__add_offreemploievaluateur.py
1 # encoding: utf-8
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7 class Migration(SchemaMigration):
8
9 def forwards(self, orm):
10
11 # Adding model 'OffreEmploiEvaluateur'
12 db.create_table('recrutement_offreemploievaluateur', (
13 ('offre_emploi', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['emploi.OffreEmploi'], db_column='offre_emploi')),
14 ('evaluateur', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['recrutement.Evaluateur'], db_column='evaluateur')),
15 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
16 ))
17 db.send_create_signal('recrutement', ['OffreEmploiEvaluateur'])
18
19
20 def backwards(self, orm):
21
22 # Deleting model 'OffreEmploiEvaluateur'
23 db.delete_table('recrutement_offreemploievaluateur')
24
25
26 models = {
27 'auth.group': {
28 'Meta': {'object_name': 'Group'},
29 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
31 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
32 },
33 'auth.permission': {
34 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
35 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
36 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
39 },
40 'auth.user': {
41 'Meta': {'object_name': 'User'},
42 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
43 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
44 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
45 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
46 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
48 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
49 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
50 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
51 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
52 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
53 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
54 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
55 },
56 'contenttypes.contenttype': {
57 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
58 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
61 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
62 },
63 'emploi.candidat': {
64 'Meta': {'object_name': 'Candidat'},
65 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
66 'adresse': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
67 'code_postal': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
68 'date_creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
69 'domaine_professionnel': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
70 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
71 'employeur_actuel': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
72 'etat_province': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
73 'genre': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
74 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75 'nationalite': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'nationalite'", 'to': "orm['references.Pays']"}),
76 'niveau_diplome': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
77 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
78 'nombre_dependant': ('django.db.models.fields.IntegerField', [], {}),
79 'offre_emploi': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'offre_emploi'", 'to': "orm['emploi.OffreEmploi']"}),
80 'pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'pays'", 'to': "orm['references.Pays']"}),
81 'poste_actuel': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
82 'prenom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
83 'situation_famille': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
84 'statut': ('django.db.models.fields.CharField', [], {'default': "'NOUV'", 'max_length': '4'}),
85 'telephone': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
86 'ville': ('django.db.models.fields.CharField', [], {'max_length': '255'})
87 },
88 'emploi.offreemploi': {
89 'Meta': {'object_name': 'OffreEmploi'},
90 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
91 'bureau': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Bureau']", 'db_column': "'bureau'"}),
92 'date_creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
93 'date_limite': ('django.db.models.fields.DateField', [], {}),
94 'debut_affectation': ('django.db.models.fields.DateField', [], {}),
95 'description': ('django.db.models.fields.TextField', [], {}),
96 'duree_affectation': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
97 'est_affiche': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
98 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99 'lieu_affectation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Implantation']", 'db_column': "'implantation'"}),
100 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
101 'poste': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
102 'poste_nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
103 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"}),
104 'renumeration': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
105 'resume': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
106 'statut': ('django.db.models.fields.CharField', [], {'default': "'NOUV'", 'max_length': '4'})
107 },
108 'recrutement.candidat': {
109 'Meta': {'object_name': 'Candidat', 'db_table': "'emploi_candidat'", '_ormbases': ['emploi.Candidat']}
110 },
111 'recrutement.candidatcourriel': {
112 'Meta': {'object_name': 'CandidatCourriel'},
113 'candidats': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['emploi.Candidat']", 'symmetrical': 'False'}),
114 'html': ('tinymce.models.HTMLField', [], {'null': 'True', 'blank': 'True'}),
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116 'plain_text': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
117 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
118 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'template'", 'to': "orm['recrutement.CourrielTemplate']"})
119 },
120 'recrutement.candidatevaluation': {
121 'Meta': {'object_name': 'CandidatEvaluation'},
122 'candidat': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'evaluations'", 'db_column': "'candidat'", 'to': "orm['emploi.Candidat']"}),
123 'commentaire': ('django.db.models.fields.TextField', [], {'default': "'Aucun'", 'null': 'True', 'blank': 'True'}),
124 'date': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
125 'evaluateur': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'evaluateur'", 'to': "orm['recrutement.Evaluateur']"}),
126 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
127 'note': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
128 },
129 'recrutement.courrieltemplate': {
130 'Meta': {'object_name': 'CourrielTemplate'},
131 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132 'nom_modele': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
133 'plain_text': ('django.db.models.fields.TextField', [], {}),
134 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '100'})
135 },
136 'recrutement.evaluateur': {
137 'Meta': {'object_name': 'Evaluateur'},
138 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
140 },
141 'recrutement.offreemploievaluateur': {
142 'Meta': {'unique_together': "(('offre_emploi', 'evaluateur'),)", 'object_name': 'OffreEmploiEvaluateur'},
143 'evaluateur': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['recrutement.Evaluateur']", 'db_column': "'evaluateur'"}),
144 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145 'offre_emploi': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['emploi.OffreEmploi']", 'db_column': "'offre_emploi'"})
146 },
147 'references.bureau': {
148 'Meta': {'object_name': 'Bureau', 'db_table': "u'ref_bureau'", 'managed': 'False'},
149 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
150 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
151 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Implantation']", 'db_column': "'implantation'"}),
153 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
154 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
155 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
156 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"})
157 },
158 'references.implantation': {
159 'Meta': {'object_name': 'Implantation', 'db_table': "u'ref_implantation'", 'managed': 'False'},
160 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
161 'adresse_physique_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
162 'adresse_physique_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
163 'adresse_physique_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
164 'adresse_physique_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
165 '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']"}),
166 'adresse_physique_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
167 'adresse_physique_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
168 'adresse_physique_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
169 'adresse_physique_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
170 'adresse_physique_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
171 'adresse_postale_boite_postale': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
172 'adresse_postale_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
173 'adresse_postale_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
174 'adresse_postale_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
175 'adresse_postale_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
176 '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']"}),
177 'adresse_postale_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
178 'adresse_postale_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
179 'adresse_postale_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
180 'adresse_postale_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
181 'adresse_postale_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
182 'bureau_rattachement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Implantation']", 'db_column': "'bureau_rattachement'"}),
183 'code_meteo': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
184 'commentaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
185 'courriel': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
186 'courriel_interne': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
187 'date_extension': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
188 'date_fermeture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
189 'date_inauguration': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
190 'date_ouverture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
191 'fax': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
192 'fax_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
193 'fuseau_horaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
194 'hebergement_convention': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
195 'hebergement_convention_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
196 'hebergement_etablissement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
197 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
198 'modif_date': ('django.db.models.fields.DateField', [], {}),
199 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
200 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
201 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
202 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"}),
203 'remarque': ('django.db.models.fields.TextField', [], {}),
204 'responsable_implantation': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
205 'statut': ('django.db.models.fields.IntegerField', [], {}),
206 'telephone': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
207 'telephone_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
208 'type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
209 'url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'}),
210 'zone_administrative': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.ZoneAdministrative']"})
211 },
212 'references.pays': {
213 'Meta': {'object_name': 'Pays', 'db_table': "u'ref_pays'", 'managed': 'False'},
214 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
215 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '2'}),
216 'code_bureau': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Bureau']", 'to_field': "'code'", 'null': 'True', 'db_column': "'code_bureau'", 'blank': 'True'}),
217 'code_iso3': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '3'}),
218 'developpement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
219 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
220 'monnaie': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
221 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
222 'nord_sud': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
223 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['references.Region']", 'db_column': "'region'"})
224 },
225 'references.region': {
226 'Meta': {'object_name': 'Region', 'db_table': "u'ref_region'", 'managed': 'False'},
227 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
228 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
229 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230 'implantation_bureau': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'gere_region'", 'null': 'True', 'db_column': "'implantation_bureau'", 'to': "orm['references.Implantation']"}),
231 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'})
232 },
233 'references.zoneadministrative': {
234 'Meta': {'object_name': 'ZoneAdministrative', 'db_table': "'ref_zoneadministrative'", 'managed': 'False'},
235 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
236 'code': ('django.db.models.fields.CharField', [], {'max_length': '4', 'primary_key': 'True'}),
237 'nom': ('django.db.models.fields.CharField', [], {'max_length': '100'})
238 }
239 }
240
241 complete_apps = ['recrutement']