Bug #50650
AttributeError: 'RoleAttribute' object has no attribute '_role_cache'
Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
28 janvier 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/28643/
AttributeError: 'RoleAttribute' object has no attribute '_role_cache' File "django/db/models/fields/related_descriptors.py", line 178, in __get__ rel_obj = getattr(instance, self.cache_name)
Mais on n'a pas la trace complète, parce que là-dessus il y a eu :
During handling of the above exception ('RoleAttribute' object has no attribute '_role_cache'), another exception occurred:
DoesNotExist: Role matching query does not exist. (16 additional frame(s) were not displayed) ... File "django/dispatch/dispatcher.py", line 193, in <listcomp> for receiver in self._live_receivers(sender) File "hobo/agent/authentic2/provisionning.py", line 380, in pre_delete instance = instance.role File "django/db/models/fields/related_descriptors.py", line 184, in __get__ rel_obj = self.get_object(instance) File "django/db/models/fields/related_descriptors.py", line 159, in get_object return qs.get(self.field.get_reverse_related_filter(instance)) File "django/db/models/query.py", line 380, in get self.model._meta.object_name
Historique
Mis à jour par Frédéric Péters il y a environ 3 ans
- Projet changé de Suivi des traces à Authentic 2