Opened 6 years ago
Closed 6 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 , 6 years ago
| Has patch: | unset |
|---|---|
| Resolution: | → needsinfo |
| Status: | assigned → closed |
| Summary: | format_html_join() should be able to handle named palceholders → format_html_join() should be able to handle named placeholders. |
comment:2 by , 6 years ago
Here is my PR with an example https://github.com/django/django/pull/12683
comment:3 by , 6 years ago
| Resolution: | needsinfo |
|---|---|
| Status: | closed → new |
comment:4 by , 6 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
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.
Can you describe your use case?
format_html_join()is a one-line hook I don't think we would like to complicate it.