projets
/
auf_rh_dae.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#3145] Changer les familles d'emploi pour des catégories d'emploi
[auf_rh_dae.git]
/
project
/
legacy
/
management
/
commands
/
rh_import_legacy.py
diff --git
a/project/legacy/management/commands/rh_import_legacy.py
b/project/legacy/management/commands/rh_import_legacy.py
index
e53bd49
..
1706bd1
100644
(file)
--- a/
project/legacy/management/commands/rh_import_legacy.py
+++ b/
project/legacy/management/commands/rh_import_legacy.py
@@
-115,7
+115,7
@@
def sync_familleemploi():
cursor = connection.cursor()
cursor.execute('TRUNCATE rh_familleemploi')
for famille in legacy.FamilleEmploi.objects.all():
cursor = connection.cursor()
cursor.execute('TRUNCATE rh_familleemploi')
for famille in legacy.FamilleEmploi.objects.all():
- rh.FamilleEmploi.objects.create(
+ rh.CategorieEmploi.objects.create(
id=famille.id_famille_emploi,
nom=famille.famille_emploi,
)
id=famille.id_famille_emploi,
nom=famille.famille_emploi,
)