Projet

Général

Profil

Development #56573

FieldError: Field 'client' does not generate an automatic reverse relation and therefore cannot be used for r...

Ajouté par Sentry Io il y a plus de 2 ans. Mis à jour il y a plus de 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Révision c72d6dd8 (diff)
Ajouté par Valentin Deniaud il y a plus de 2 ans

manager: disallow ordering by client in authorizations table (#56573)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 2 ans

  • Projet changé de Suivi des traces à Authentic 2
#2

Mis à jour par Valentin Deniaud il y a plus de 2 ans

  • Assigné à mis à Valentin Deniaud
#3

Mis à jour par Valentin Deniaud il y a plus de 2 ans

#4

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

  • Statut changé de Solution proposée à Solution validée
#5

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)
#6

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

Formats disponibles : Atom PDF