#25706: Support CSP default-src 'self' on Django Admin GIS
-------------------------------------+-------------------------------------
     Reporter:  Thomas Grainger      |                    Owner:  Claude
         Type:                       |  Paroz
  Cleanup/optimization               |                   Status:  closed
    Component:  GIS                  |                  Version:  dev
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  CSP inline           |             Triage Stage:  Ready for
  javascript                         |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by nessita <124304+nessita@…>):

 In [changeset:"0a262c8407a2f4e4971118ca435c6931c40b70ae" 0a262c84]:
 {{{#!CommitTicketReference repository=""
 revision="0a262c8407a2f4e4971118ca435c6931c40b70ae"
 Fixed #36537 -- Ensured unique HTML IDs for geometry widget option scripts
 in the admin.

 This work amends the code from f2f6046c0f92ff1faed057da0711ac478eef439c
 where multiple geometry widgets rendered `<script>` elements in the
 admin with the same HTML `id`, resulting in invalid HTML and fragile
 JavaScript selectors. Refs #25706.

 This change uses the widget's textarea ID to generate a unique `id` for
 each JSON options `<script>`, ensuring valid and robust markup.

 Co-authored-by: Natalia <[email protected]>
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/25706#comment:20>
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 visit 
https://groups.google.com/d/msgid/django-updates/010701987aa854bf-57f8daf1-9aff-403f-9e19-748eff4c32bc-000000%40eu-central-1.amazonses.com.

Reply via email to