Changes between Initial Version and Version 1 of Ticket #37088
- Timestamp:
- May 7, 2026, 7:35:21 AM (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37088
- Property Keywords Media MediaAsset added
- Property Triage Stage Unreviewed → Accepted
-
Ticket #37088 – Description
initial v1 1 1 This is a spin-off from here: https://github.com/django/django/pull/21239#issuecomment-4396168812 2 2 3 Currently MediaAsset.__eq__compares only the path.3 Currently `MediaAsset.__eq__` compares only the path. 4 4 5 5 This approach was deliberately chosen to benefit performance. 6 6 7 7 However, in the case of `link`-elements and even `script` this approach can break. 8 For a link, `rel=stylesheet` and `rel= refretch` can share the same path. Prefetching is also not too crazy a use case; someone will probably try to do it.8 For a link, `rel=stylesheet` and `rel=prefetch` can share the same path. Prefetching is also not too crazy a use case; someone will probably try to do it. 9 9 10 10 A compromise could be to define an explicit list of attributes to compare, instead of doing a full dictionary comparison via `attributres`.