#33302: Make the element_id argument of json_script optional
---------------------------------------------+--------------------------
Reporter: Baptiste Mispelon | Owner: nobody
Type: New feature | Status: assigned
Component: Template system | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+--------------------------
I recently had a use-case where I wanted to use `json_script` but I didn't
need any `id` for it (I was including the `<script>` inside a `<template>`
so I didn't need an `id` to refer to it).
I can't see any reason (security or otherwise) for the `id` to be required
and making it optional doesn't seem to break any tests.
--
Ticket URL: <https://code.djangoproject.com/ticket/33302>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.c079009e815e83fee5955113a3e3e946%40djangoproject.com.