#21077: simple_tag does not allow kwargs with dashes in them ---------------------------------+------------------------------------ Reporter: semenov | Owner: Type: Bug | Status: closed Component: Template system | Version: 1.5 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ---------------------------------+------------------------------------ Changes (by russellm):
* status: new => closed * resolution: => wontfix Comment: I'm inclined to agree with @cbabs on this one. I can't see any compelling reason why a dash is helpful as a token in kwarg on a template tag. The fact that they're legal for the name of the template tag itself strikes me as an accident of parsing history, not strong design. Introducing dashes into kwarg syntax seems to me like something that would be syntactically ambiguous, and would open up a treasure trove if annoying edge case bugs. Marking won't fix; if anyone is particularly driven to argue the counter position, please open a thread on Django-dev. -- Ticket URL: <https://code.djangoproject.com/ticket/21077#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.31288aa575ce1534f85f8740bc4cd7d3%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.