def _make_media_for_variables(variables=None): media_obj = WidgetsMedia( js=( ( static("admin/js/core.js"), static("admin/js/admin/RelatedObjectLookups.js"), static("libs/jquery-2.1.1.min.js"), static("libs/bootstrap/js/bootstrap.min.js"), static("admin/js/custom.js"), ) ), css={ "all": ( "//fonts.googleapis.com/css?family=Open+Sans:400,300", static("libs/bootstrap/css/bootstrap.css"), static("libs/ace/css/ace.min.css"), static("admin/css/custom.css"), ) }, ) media_obj.add_js( ( reverse("admin:jsi18n"), static("admin/js/SmartSnippetLib.js"), static("admin/js/jquery.init.js"), static("admin/js/default.jQuery.init.js"), ) ) variables_media(media_obj, variables) return media_obj
def media(self): _media = super(InheritPageForm, self).media variables_media(_media, self._cache_variables) return _media