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.
* cc: Baptiste Mispelon (added)
* has_patch: 0 => 1
Comment:
PR is here: https://github.com/django/django/pull/15103
--
Ticket URL: <https://code.djangoproject.com/ticket/33302#comment:1>
* stage: Unreviewed => Accepted
Comment:
Seems reasonable yes. Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/33302#comment:2>
* owner: nobody => Baptiste Mispelon
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33302#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e6e664a71130ee74d2c4c6800e4131f132709997" e6e664a7]:
{{{
#!CommitTicketReference repository=""
revision="e6e664a71130ee74d2c4c6800e4131f132709997"
Fixed #33302 -- Made element_id optional argument for json_script template
filter.
Added versionchanged note in documentation
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33302#comment:4>
Comment (by Adam Johnson):
Just wanna say thanks for the feature. I just had the same thought and
wrote #33469 before finding it has already been done!
--
Ticket URL: <https://code.djangoproject.com/ticket/33302#comment:5>