mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #29490 -- Added support for object-based Media CSS and JS paths.
This commit is contained in:
committed by
Mariusz Felisiak
parent
cda81b79f2
commit
4c76ffc2d6
@@ -192,6 +192,11 @@ Forms
|
||||
* The new ``edit_only`` argument for :func:`.modelformset_factory` and
|
||||
:func:`.inlineformset_factory` allows preventing new objects creation.
|
||||
|
||||
* The ``js`` and ``css`` class attributes of :doc:`Media </topics/forms/media>`
|
||||
now allow using hashable objects, not only path strings, as long as those
|
||||
objects implement the ``__html__()`` method (typically when decorated with
|
||||
the :func:`~django.utils.html.html_safe` decorator).
|
||||
|
||||
Generic Views
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user