Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/j/Django-Select2-4.2.2/django_select2/views.py   Django-Select2(Download)
from django.http import Http404
 
from .util import get_field, is_valid_id
 
NO_ERR_RESP = 'nil'
    def check_all_permissions(self, request, *args, **kwargs):
        id_ = request.GET.get('field_id', None)
        if id_ is None or not is_valid_id(id_):
            raise Http404('field_id not found or is invalid')
        field = get_field(id_)

src/d/j/Django-Select2-Py3-4.2.1/django_select2/views.py   Django-Select2-Py3(Download)
from django.http import Http404
 
from .util import get_field, is_valid_id
 
NO_ERR_RESP = 'nil'
    def check_all_permissions(self, request, *args, **kwargs):
        id_ = request.GET.get('field_id', None)
        if id_ is None or not is_valid_id(id_):
            raise Http404('field_id not found or is invalid')
        field = get_field(id_)