cms/apps/media/admin.py
def media_library_changelist_view(self, request, extra_context=None):
        '''Renders the change list, but sets 'is_popup=True' into the template
        context to make it render the media library sans navigation, without
        needing _popup in the URL (which causes an exception with Jet's
        Javascript, which assumes that if _popup is in the URL that it is a
        related item popup).'''
        context = extra_context or {}
        context.setdefault('changelist_template_parent', 'reversion/change_list.html')
        context['is_popup'] = True
        context['is_media_library_iframe'] = True

        return super().changelist_view(request, context)
Renders the change list, but sets 'is_popup=True' into the template
        context to make it render the media library sans navigation, without
        needing _popup in the URL (which causes an exception with Jet's
        Javascript, which assumes that if _popup is in the URL that it is a
        related item popup).
Renders the change list, but sets 'is_popup=True' into the template
context to make it render the media library sans navigation, without
needing _popup in the URL (which causes an exception with Jet's
Javascript, which assumes that if _popup is in the URL that it is a
related item popup).
Renders the change list but sets ' is_popup = True ' into the template context to make it render the media library sans navigation without needing _popup in the URL ( which causes an exception with Jet ' s Javascript which assumes that if _popup is in the URL that it is a related item popup ) .
def media_library_changelist_view(self, request, extra_context=None):
        context = extra_context or {}
        context.setdefault('changelist_template_parent', 'reversion/change_list.html')
        context['is_popup'] = True
        context['is_media_library_iframe'] = True
        return super().changelist_view(request, context)
def media_library_changelist_view ( self , request , extra_context = None ) : context = extra_context or { } context . setdefault ( 'changelist_template_parent' , 'reversion/change_list.html' ) context [ 'is_popup' ] = True context [ 'is_media_library_iframe' ] = True return super ( ) . changelist_view ( request , context )
Renders the change list, but sets 'is_popup=True' into the template
context to make it render the media library sans navigation, without
needing _popup in the URL (which causes an exception with Jet's
Javascript, which assumes that if _popup is in the URL that it is a
related item popup).
Renders the change list but sets ' is_popup = True ' into the template context to make it render the media library sans navigation without needing _popup in the URL ( which causes an exception with Jet ' s Javascript which assumes that if _popup is in the URL that it is a related item popup ) .
'''Renders the change list, but sets 'is_popup=True' into the template
        context to make it render the media library sans navigation, without
        needing _popup in the URL (which causes an exception with Jet's
        Javascript, which assumes that if _popup is in the URL that it is a
        related item popup).'''
self
request
extra_context