Projet

Général

Profil

Bug #48371

'FakeTenant' object has no attribute 'domain_url'

Ajouté par Nicolas Roche il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 novembre 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

J'ai une erreur cette une migration de passerelle :

$ passerelle-manage migrate_schemas csvdatasource 0020 -v2
  File "/home/nroche/src/passerelle/passerelle/apps/csvdatasource/migrations/0020_csv_upload_to.py", line 13, in move_files
    old_path = instance.csv_file.path
  File "/home/nroche/envs/publik-env-py3/lib/python3.8/site-packages/django/db/models/fields/files.py", line 65, in path
    return self.storage.path(self.name)
  File "/home/nroche/src/hobo/hobo/multitenant/storage.py", line 23, in path
    location = safe_join(settings.TENANT_BASE, connection.tenant.domain_url, 'media')
AttributeError: 'FakeTenant' object has no attribute 'domain_url'

Historique

#1

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

  • Statut changé de Nouveau à Rejeté

Il faut mettre à jour hobo.

#2

Mis à jour par Nicolas Roche il y a plus de 3 ans

(oui, il me manquait #48071, désolé pour le bruit)

Formats disponibles : Atom PDF