Bug #44063
IntegrityError: duplicate key value violates unique constraint "profile_attributedefinition_label_key"
Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
15 juin 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/2745/
DoesNotExist: AttributeDefinition matching query does not exist. File "django/db/models/query.py", line 464, in get_or_create return self.get(**lookup), False File "django/db/models/query.py", line 380, in get self.model._meta.object_name IntegrityError: duplicate key value violates unique constraint "profile_attributedefinition_label_key" DETAIL: Key (label)=(Numéro dans la voie) already exists. File "django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) IntegrityError: duplicate key value violates unique constraint "profile_attributedefinition_label_key" DETAIL: Key (label)=(Numéro dans la voie) already exists. (22 additional frame(s) were not displayed) ... File "django/db/backends/utils.py", line 79, in execute return super(CursorDebugWrapper, self).execute(sql, params) File "django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) File "django/db/utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "django/utils/six.py", line 685, in reraise raise value.with_traceback(tb) File "django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params)