Projet

Général

Profil

Bug #21098

django 1.11 : utiliser la nouvelle API _meta côté djang orest framework

Ajouté par Frédéric Péters il y a plus de 6 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
11 janvier 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

  File "/home/fred/src/eo/venv1.11/local/lib/python2.7/site-packages/rest_framework/request.py", line 345, in _authenticate
    user_auth_tuple = authenticator.authenticate(self)
  File "/home/fred/src/eo/hobo/hobo/rest_authentication.py", line 112, in authenticate
    user = self.resolve_user(request)
  File "/home/fred/src/eo/hobo/hobo/rest_authentication.py", line 63, in resolve_user
    User._meta.get_field_by_name('uuid')
AttributeError: 'Options' object has no attribute 'get_field_by_name'

Fichiers

Révisions associées

Révision 9f4ad342 (diff)
Ajouté par Frédéric Péters il y a environ 6 ans

misc: update rest-framework user look up for new _meta API (#21098)

Historique

#1

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

Il y a des tests sur cette partie mais ils sont dans tests_authentic/ et du coup pas exécutés dans mes tests pour 1.11.

#2

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

Ça reste compatible 1.8 donc ack.

#3

Mis à jour par Frédéric Péters il y a environ 6 ans

  • Statut changé de En cours à Résolu (à déployer)
commit 6a478351bb9ca3c82ea7cee7bd0e78cdbcc74260
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Thu Jan 11 10:48:16 2018 +0100

    misc: update rest-framework user look up for new _meta API (#21098)
#4

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

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF