From e703b93a656b78b9b444bb3a9980e305ed002a70 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 11 Dec 2019 00:49:54 -0800 Subject: Fixed #31080 -- Removed redundant type="text/javascript" attribute from - + + Here's a list of all possible ``Media`` options. There are no required options. @@ -147,9 +147,9 @@ example above:: >>> print(w.media) - - - + + + The FancyCalendar widget inherits all the assets from its parent widget. If you don't want ``Media`` to be inherited in this way, add @@ -166,7 +166,7 @@ an ``extend=False`` declaration to the ``Media`` declaration:: >>> w = FancyCalendarWidget() >>> print(w.media) - + If you require even more control over inheritance, define your assets using a :ref:`dynamic property `. Dynamic properties give you @@ -229,16 +229,16 @@ was ``None``:: >>> w = CalendarWidget() >>> print(w.media) - - + + But if :setting:`STATIC_URL` is ``'http://static.example.com/'``:: >>> w = CalendarWidget() >>> print(w.media) - - + + Or if :mod:`~django.contrib.staticfiles` is configured using the :class:`~django.contrib.staticfiles.storage.ManifestStaticFilesStorage`:: @@ -246,8 +246,8 @@ Or if :mod:`~django.contrib.staticfiles` is configured using the >>> w = CalendarWidget() >>> print(w.media) - - + + ``Media`` objects ================= @@ -269,8 +269,8 @@ operator to filter out a medium of interest. For example:: >>> w = CalendarWidget() >>> print(w.media) - - + + >>> print(w.media['css']) @@ -301,9 +301,9 @@ specified by both:: >>> w2 = OtherWidget() >>> print(w1.media + w2.media) - - - + + + .. _form-media-asset-order: @@ -327,10 +327,10 @@ For example:: >>> w1 = CalendarWidget() >>> w2 = TimeWidget() >>> print(w1.media + w2.media) - - - - + + + + Combining ``Media`` objects with assets in a conflicting order results in a ``MediaOrderConflictWarning``. @@ -357,9 +357,9 @@ are part of the form:: >>> f = ContactForm() >>> f.media - - - + + + If you want to associate additional assets with a form -- for example, CSS for form layout -- add a ``Media`` declaration to the form:: @@ -377,6 +377,6 @@ CSS for form layout -- add a ``Media`` declaration to the form:: >>> f.media - - - + + + -- cgit v1.3