Projet

Général

Profil

Bug #41648

is_visible vs positional argument

Ajouté par Frédéric Péters il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
13 avril 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python3/dist-packages/combo/apps/dashboard/views.py" in get
  60.         if not cell.is_visible(request.user):

Exception Type: TypeError at /api/dashboard/add/data_configjsoncell-500972/
Exception Value: is_visible() takes 1 positional argument but 2 were given

Les is_visible(**kwargs) n'acceptent pas qu'un paramètre non-nommé soit passé.


Fichiers

Révisions associées

Révision ef913649 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

misc: always pass user as keyword argument to cell.is_visible (#41648)

Révision 2af4f4f5 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

misc: always pass user as keyword argument to cell.is_visible (#41648)

Historique

#1

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

(hotfixé sur toodego)

#2

Mis à jour par Benjamin Dauvergne il y a environ 4 ans

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit ef91364999e613029b9614e2cd70cd60e15a94ca
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Mon Apr 13 17:48:40 2020 +0200

    misc: always pass user as keyword argument to cell.is_visible (#41648)
#4

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

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

Formats disponibles : Atom PDF