コード例 #1
0
ファイル: view.py プロジェクト: tobiasmcnulty/commcare-hq
def _safe_download_poll(view_fn, request, domain, download_id, *args,
                        **kwargs):
    return report_has_location_filter(request.GET.get('config_id'), domain)
コード例 #2
0
ファイル: view.py プロジェクト: tobiasmcnulty/commcare-hq
def _ucr_view_is_safe(view_fn, *args, **kwargs):
    return report_has_location_filter(config_id=kwargs.get('subreport_slug'),
                                      domain=kwargs.get('domain'))