Project

General

Profile

Développement #61503

API stats, utiliser le slug des catégories plutôt que l'identifiant

Added by Valentin Deniaud almost 3 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
07 February 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

Dans

        category_options = [{'id': '_all', 'label': C_('categories|All')}] + [
            {'id': x.id, 'label': x.name} for x in categories
        ]

plutôt utiliser url_name. Ça devrait être plus stable à l'import/export côté combo.


Files

Associated revisions

Revision 915836c7 (diff)
Added by Valentin Deniaud over 2 years ago

statistics: use category slug rather than id (#61503)

History

#1

Updated by Valentin Deniaud over 2 years ago

  • Assignee set to Valentin Deniaud
#2

Updated by Valentin Deniaud over 2 years ago

#3

Updated by Lauréline Guérin over 2 years ago

  • Status changed from Solution proposée to Solution validée
#4

Updated by Valentin Deniaud over 2 years ago

  • Status changed from Solution validée to Résolu (à déployer)
commit 7180d8eaeea19f06de0623bfdd1c671cb2e491aa
Author: Valentin Deniaud <vdeniaud@entrouvert.com>
Date:   Tue Mar 8 18:01:33 2022 +0100

    statistics: use category slug rather than id (#61503)
#5

Updated by Transition automatique over 2 years ago

  • Status changed from Résolu (à déployer) to Solution déployée
#6

Updated by Transition automatique over 2 years ago

Automatic expiration

Also available in: Atom PDF