예제 #1
0
파일: grids.py 프로젝트: cdrx/django-extjs
    def query_from_request(self, request, queryset, fields=None):
        """Wrap for query_from_request
        """
        fields = fields or self.fields

        dfields = {}
        for x in fields:
            dfields[x] = self._mapping[x]
        return utils.query_from_request(request, queryset, dfields)
예제 #2
0
    def query_from_request(self, request, queryset, fields=None):
        """Wrap for query_from_request
        """
        fields = fields or self.fields

        dfields = {}
        for x in fields:
            dfields[x] = self._mapping[x]
        return utils.query_from_request(request, queryset, dfields)
예제 #3
0
 def query_from_request(self, request, queryset, fields=None):
     """Wrap for query_from_request
     """
     fields = fields or self.fields
     dfields = {}
     if type(fields) == type([]):
         for x in fields:
             dfields[x] = self._mapping[x]
     else:
         dfields = fields
     return utils.query_from_request(request, queryset, dfields)