Bug #15788
trier la liste de fichiers par taille produit un traceback
Début:
06 avril 2017
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
La taille n'étant pas un attribut d'un modèle ça ne peut pas marcher, autant interdire le tri sur cette colonne.
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a environ 7 ans
- Fichier 0001-make-files-table-unorderable-by-size-fixes-15788.patch 0001-make-files-table-unorderable-by-size-fixes-15788.patch ajouté
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a environ 7 ans
[...] File "/usr/lib/python2.7/dist-packages/django_tables2/rows.py", line 186, in __len__ return len(self.data) File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 144, in __len__ self._fetch_all() File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 965, in _fetch_all self._result_cache = list(self.iterator()) File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 238, in iterator results = compiler.execute_sql() File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 829, in execute_sql sql, params = self.as_sql() File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 378, in as_sql extra_select, order_by, group_by = self.pre_sql_setup() File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 49, in pre_sql_setup order_by = self.get_order_by() File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 286, in get_order_by field, self.query.get_meta(), default_order=asc)) File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 558, in find_ordering_name field, targets, alias, joins, path, opts = self._setup_joins(pieces, opts, alias) File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 591, in _setup_joins pieces, opts, alias) File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 1472, in setup_joins names, opts, allow_many, fail_on_missing=True) File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 1440, in names_to_path " not permitted." % (names[pos + 1], name)) FieldError: Cannot resolve keyword u'size' into field. Join on 'content' not permitted.
Mis à jour par Frédéric Péters il y a environ 7 ans
- Statut changé de Nouveau à Résolu (à déployer)
Poussé et je vais tagguer pour envoyer ça sur la recette.
commit 39441a95f571b74d33f84bf35ff7358cad7782e1 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Thu Apr 6 18:05:19 2017 +0200 make files table unorderable by size (#15788)
Mis à jour par Benjamin Dauvergne il y a environ 6 ans
- Statut changé de Résolu (à déployer) à Fermé
make files table unorderable by size (#15788)