Development #56573
FieldError: Field 'client' does not generate an automatic reverse relation and therefore cannot be used for r...
Début:
01 septembre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/51690/
FieldError: Field 'client' does not generate an automatic reverse relation and therefore cannot be used for reverse querying. If it is a GenericForeignKey, consider adding a GenericRelation. (62 additional frame(s) were not displayed) ... File "django/db/models/sql/compiler.py", line 330, in get_order_by field, self.query.get_meta(), default_order=asc)) File "django/db/models/sql/compiler.py", line 704, in find_ordering_name field, targets, alias, joins, path, opts, transform_function = self._setup_joins(pieces, opts, alias) File "django/db/models/sql/compiler.py", line 734, in _setup_joins field, targets, opts, joins, path, transform_function = self.query.setup_joins(pieces, opts, alias) File "django/db/models/sql/query.py", line 1504, in setup_joins names[:pivot], opts, allow_many, fail_on_missing=True, File "django/db/models/sql/query.py", line 1401, in names_to_path "adding a GenericRelation." % name
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Projet changé de Suivi des traces à Authentic 2
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- Fichier 0001-manager-disallow-ordering-by-client-in-authorization.patch 0001-manager-disallow-ordering-by-client-in-authorization.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 9cefa7070dc0c9660b7fdfb8a3737690e1996d39 Author: Valentin Deniaud <vdeniaud@entrouvert.com> Date: Wed Sep 15 11:26:57 2021 +0200 manager: disallow ordering by client in authorizations table (#56573)
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
manager: disallow ordering by client in authorizations table (#56573)