Addons: use verbose_name
instead of slug
for sorting versions
#11182
Labels
verbose_name
instead of slug
for sorting versions
#11182
In the response of
/addons/
API endpoint we are usingversion.slug
to generateaddons.flyout.versions
:readthedocs.org/readthedocs/proxito/views/hosting.py
Lines 357 to 368 in a49f111
Note there aren't too many differences here, but a version named like
release/v2.x
(verbose_name
) will be rendered in the flyout asrelease-v2.x
instead (slug
).Also note that we could consider to render the versions completely (using the
VersionSerializer
) underadddons.flyout.versions
instead of just{ slug: ..., url: ... }
Reference #11069 (comment)
The text was updated successfully, but these errors were encountered: