diff options
| author | Henry Dang <henrydangprg@gmail.com> | 2016-10-29 12:16:21 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-31 16:07:00 -0400 |
| commit | 9c2e1ad6a5f0ca98d68df7afdb13715921949c5a (patch) | |
| tree | f49ac13e763667ac1c8e5ee478d26abc3e1957f3 /docs | |
| parent | 5595db9504ca3fe431f04f853ac8b71edac012c9 (diff) | |
Fixed #27400 -- Documented {% static %} encoding change in 1.10.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.10.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 3c21a703ee..adca25e0ac 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -910,6 +910,15 @@ Miscellaneous * Private API ``django.forms.models.model_to_dict()`` returns a queryset rather than a list of primary keys for ``ManyToManyField``\s . +* If ``django.contrib.staticfiles`` is + installed, the :ttag:`static` template tag uses the ``staticfiles`` storage + to construct the URL rather than simply joining the value with + ``STATIC_ROOT``. The new approach encodes the URL, which could be + backwards-incompatible in cases such as including a fragment in a path, e.g. + ``{% static 'img.svg#fragment' %}``, since the ``#`` is encoded as ``%23``. + To adapt, move the fragment outside the template tag: + ``{% static 'img.svg' %}#fragment``. + .. _deprecated-features-1.10: Features deprecated in 1.10 |
