cms/apps/media/admin.py
def response_add(self, request, obj, post_url_continue=None):
        '''Returns the response for a successful add action.'''
        if '_tinymce' in request.GET:
            context = {'permalink': permalinks.create(obj),
                       'title': obj.title}
            return render(request, 'admin/media/file/filebrowser_add_success.html', context)
        return super().response_add(request, obj, post_url_continue=post_url_continue)
Returns the response for a successful add action.
Returns the response for a successful add action.
Returns the response for a successful add action .
def response_add(self, request, obj, post_url_continue=None):
        if '_tinymce' in request.GET:
            context = {'permalink': permalinks.create(obj),
                       'title': obj.title}
            return render(request, 'admin/media/file/filebrowser_add_success.html', context)
        return super().response_add(request, obj, post_url_continue=post_url_continue)
def response_add ( self , request , obj , post_url_continue = None ) : if '_tinymce' in request . GET : context = { 'permalink' : permalinks . create ( obj ) , 'title' : obj . title } return render ( request , 'admin/media/file/filebrowser_add_success.html' , context ) return super ( ) . response_add ( request , obj , post_url_continue = post_url_continue )
Returns the response for a successful add action.
Returns the response for a successful add action .
'''Returns the response for a successful add action.'''
self
request
obj
post_url_continue