Opened 5 years ago

Closed 5 years ago

#31436 closed New feature (wontfix)

format_html_join() should be able to handle named placeholders.

Reported by: Sébastien Corbin Owned by: Sébastien Corbin
Component: Utilities Version: 3.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Currently there is no way to use named placeholders in the format_html_join() function.

I will provide a PR soon to do that (this is my first contribution, be nice!)

Change History (4)

comment:1 by Mariusz Felisiak, 5 years ago

Has patch: unset
Resolution: needsinfo
Status: assignedclosed
Summary: format_html_join() should be able to handle named palceholdersformat_html_join() should be able to handle named placeholders.

Can you describe your use case? format_html_join() is a one-line hook I don't think we would like to complicate it.

comment:2 by Sébastien Corbin, 5 years ago

Here is my PR with an example https://github.com/django/django/pull/12683

comment:3 by Sébastien Corbin, 5 years ago

Resolution: needsinfo
Status: closednew

comment:4 by Mariusz Felisiak, 5 years ago

Resolution: wontfix
Status: newclosed

Thanks for this ticket, however format_html_join() is a small wrapper of format_html() for the group of arguments that need to be formatted using the same format string. I don't see much value in supporting kwargs.

Note: See TracTickets for help on using tickets.
Back to Top