def popup_status(request):
    return ('_popup' in request.GET or 'pop' in request.GET or
            '_popup' in request.POST or 'pop' in request.POST)
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/media/views.py/popup_status/original