delete offre emploi
[auf_rh_dae.git] / project / recrutement / migrations / 0003_auto.py
CommitLineData
cb215af8
OL
1# encoding: utf-8
2import datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7class Migration(SchemaMigration):
8
9 def forwards(self, orm):
10
11 # Removing M2M table for field offres_emploi on 'Evaluateur'
12 db.delete_table('recrutement_evaluateur_offres_emploi')
13
14
15 def backwards(self, orm):
16
17 # Adding M2M table for field offres_emploi on 'Evaluateur'
18 db.create_table('recrutement_evaluateur_offres_emploi', (
19 ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
20 ('evaluateur', models.ForeignKey(orm['recrutement.evaluateur'], null=False)),
21 ('offreemploi', models.ForeignKey(orm['emploi.offreemploi'], null=False))
22 ))
23 db.create_unique('recrutement_evaluateur_offres_emploi', ['evaluateur_id', 'offreemploi_id'])
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', [], {'max_length': '80', 'unique': 'True'}),
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', [], {'max_length': '30', 'unique': 'True'})
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 'datamaster_modeles.bureau': {
64 'Meta': {'object_name': 'Bureau', 'db_table': "u'ref_bureau'"},
65 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
66 'code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True'}),
67 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
68 'implantation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Implantation']", 'db_column': "'implantation'"}),
69 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
70 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
71 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
72 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"})
73 },
74 'datamaster_modeles.implantation': {
75 'Meta': {'object_name': 'Implantation', 'db_table': "u'ref_implantation'"},
76 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
77 'adresse_physique_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
78 'adresse_physique_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
79 'adresse_physique_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
80 'adresse_physique_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
81 'adresse_physique_pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'impl_adresse_physique'", 'to_field': "'code'", 'db_column': "'adresse_physique_pays'", 'to': "orm['datamaster_modeles.Pays']"}),
82 'adresse_physique_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
83 'adresse_physique_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
84 'adresse_physique_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
85 'adresse_physique_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
86 'adresse_physique_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
87 'adresse_postale_boite_postale': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
88 'adresse_postale_bureau': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
89 'adresse_postale_code_postal': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
90 'adresse_postale_code_postal_avant_ville': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
91 'adresse_postale_no': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
92 'adresse_postale_pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'impl_adresse_postale'", 'to_field': "'code'", 'db_column': "'adresse_postale_pays'", 'to': "orm['datamaster_modeles.Pays']"}),
93 'adresse_postale_precision': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
94 'adresse_postale_precision_avant': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
95 'adresse_postale_region': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
96 'adresse_postale_rue': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
97 'adresse_postale_ville': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
98 'bureau_rattachement': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Implantation']", 'db_column': "'bureau_rattachement'"}),
99 'code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True'}),
100 'code_meteo': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
101 'commentaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
102 'courriel': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
103 'courriel_interne': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
104 'date_extension': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
105 'date_fermeture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
106 'date_inauguration': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
107 'date_ouverture': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
108 'fax': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
109 'fax_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
110 'fuseau_horaire': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
111 'hebergement_convention': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
112 'hebergement_convention_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
113 'hebergement_etablissement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
114 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
115 'modif_date': ('django.db.models.fields.DateField', [], {}),
116 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
117 'nom_court': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
118 'nom_long': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
119 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"}),
120 'remarque': ('django.db.models.fields.TextField', [], {}),
121 'responsable_implantation': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
122 'statut': ('django.db.models.fields.IntegerField', [], {}),
123 'telephone': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
124 'telephone_interne': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
125 'type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
126 'url': ('django.db.models.fields.URLField', [], {'max_length': '255', 'blank': 'True'})
127 },
128 'datamaster_modeles.pays': {
129 'Meta': {'object_name': 'Pays', 'db_table': "u'ref_pays'"},
130 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
131 'code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'unique': 'True'}),
132 'code_bureau': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Bureau']", 'to_field': "'code'", 'db_column': "'code_bureau'"}),
133 'code_iso3': ('django.db.models.fields.CharField', [], {'max_length': '3', 'unique': 'True', 'blank': 'True'}),
134 'developpement': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
135 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
136 'monnaie': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
137 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
138 'nord_sud': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
139 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"})
140 },
141 'datamaster_modeles.region': {
142 'Meta': {'object_name': 'Region', 'db_table': "u'ref_region'"},
143 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
144 'code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True'}),
145 'id': ('django.db.models.fields.IntegerField', [], {'primary_key': 'True'}),
146 'implantation_bureau': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'gere_region'", 'db_column': "'implantation_bureau'", 'to': "orm['datamaster_modeles.Implantation']"}),
147 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'})
148 },
149 'emploi.candidat': {
150 'Meta': {'object_name': 'Candidat'},
151 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
152 'adresse': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
153 'code_postal': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
154 'date_creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
155 'domaine_professionnel': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
156 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
157 'employeur_actuel': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
158 'etat_province': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
159 'genre': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
160 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161 'nationalite': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'nationalite'", 'to': "orm['datamaster_modeles.Pays']"}),
162 'niveau_diplome': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
163 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
164 'nombre_dependant': ('django.db.models.fields.IntegerField', [], {}),
165 'offre_emploi': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'offre_emploi'", 'to': "orm['emploi.OffreEmploi']"}),
166 'pays': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'pays'", 'to': "orm['datamaster_modeles.Pays']"}),
167 'poste_actuel': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
168 'prenom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
169 'situation_famille': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
170 'statut': ('django.db.models.fields.CharField', [], {'default': "'NOUV'", 'max_length': '4'}),
171 'telephone': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
172 'ville': ('django.db.models.fields.CharField', [], {'max_length': '255'})
173 },
174 'emploi.offreemploi': {
175 'Meta': {'object_name': 'OffreEmploi'},
176 'actif': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
177 'bureau': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Bureau']", 'db_column': "'bureau'"}),
178 'date_creation': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
179 'date_limite': ('django.db.models.fields.DateField', [], {}),
180 'debut_affectation': ('django.db.models.fields.DateField', [], {}),
181 'description': ('django.db.models.fields.TextField', [], {}),
182 'duree_affectation': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
183 'est_affiche': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
184 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
185 'lieu_affectation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Implantation']", 'db_column': "'implantation'"}),
186 'nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
187 'poste': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
188 'poste_nom': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
189 'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datamaster_modeles.Region']", 'db_column': "'region'"}),
190 'renumeration': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
191 'resume': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
192 'statut': ('django.db.models.fields.CharField', [], {'default': "'NOUV'", 'max_length': '4'})
193 },
194 'recrutement.candidat': {
195 'Meta': {'object_name': 'Candidat', 'db_table': "'emploi_candidat'", '_ormbases': ['emploi.Candidat']}
196 },
197 'recrutement.candidatcourriel': {
198 'Meta': {'object_name': 'CandidatCourriel'},
199 'candidats': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['emploi.Candidat']", 'symmetrical': 'False'}),
200 'html': ('tinymce.models.HTMLField', [], {'null': 'True', 'blank': 'True'}),
201 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
202 'plain_text': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
203 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
204 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'template'", 'to': "orm['recrutement.CourrielTemplate']"})
205 },
206 'recrutement.candidatevaluation': {
207 'Meta': {'object_name': 'CandidatEvaluation'},
208 'candidat': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'candidat'", 'to': "orm['emploi.Candidat']"}),
209 'commentaire': ('django.db.models.fields.TextField', [], {'default': "'Aucun'", 'null': 'True', 'blank': 'True'}),
210 'date': ('django.db.models.fields.DateField', [], {'auto_now_add': 'True', 'blank': 'True'}),
211 'evaluateur': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'+'", 'db_column': "'evaluateur'", 'to': "orm['recrutement.Evaluateur']"}),
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213 'note': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'})
214 },
215 'recrutement.courrieltemplate': {
216 'Meta': {'object_name': 'CourrielTemplate'},
217 'html': ('tinymce.models.HTMLField', [], {}),
218 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
219 'nom_modele': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
220 'plain_text': ('django.db.models.fields.TextField', [], {}),
221 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '100'})
222 },
223 'recrutement.evaluateur': {
224 'Meta': {'object_name': 'Evaluateur'},
225 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
226 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
227 }
228 }
229
230 complete_apps = ['recrutement']