I'm starting with djangorestframework of django-python and I have the following code:
class ProcesoViewSet(ModelPagination, viewsets.ViewSet):
def list(self, request):
query = request.query_params
query1 = self.request.query_params
log.info(query)
log.info(query1)
I would like to know what the difference is, I did log the two values this is the result (it's the same)
<QueryDict: {'page': ['1'], 'all': ['false']}>
<QueryDict: {'page': ['1'], 'all': ['false']}>
But I would like to know there are advantages and disadvantages of using one or the other. Thanks.