File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ def get_queryset(self):
116116 return RawData .objects .filter (
117117 normalizeddata__changeset__changes__target_id = object_id ,
118118 normalizeddata__changeset__changes__target_type__model = object_type
119- ).distinct ('id' )
119+ ).distinct ('id' ). select_related ( 'source' )
120120 else :
121- return RawData .objects .all ()
121+ return RawData .objects .all (). select_related ( 'source' )
122122
123123
124124class V1DataView (views .APIView ):
Original file line number Diff line number Diff line change 295295REST_FRAMEWORK = {
296296 'PAGE_SIZE' : 10 ,
297297 'EXCEPTION_HANDLER' : 'rest_framework_json_api.exceptions.exception_handler' ,
298- 'DEFAULT_PAGINATION_CLASS' : 'rest_framework_json_api .pagination.PageNumberPagination ' ,
298+ 'DEFAULT_PAGINATION_CLASS' : 'api .pagination.FuzzyPageNumberPagination ' ,
299299 'DEFAULT_PARSER_CLASSES' : (
300300 'rest_framework_json_api.parsers.JSONParser' ,
301301 ),
You can’t perform that action at this time.
0 commit comments