mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
More pep8
This commit is contained in:
parent
99bd5b0e1f
commit
9412ed16a1
|
@ -658,7 +658,7 @@ class CursorPagination(BasePagination):
|
|||
for i in range(len(ordering)):
|
||||
# The first operands need to be equals
|
||||
# the last operands need to be gt
|
||||
equals = list(ordering[:i+2])
|
||||
equals = list(ordering[:i + 2])
|
||||
greater_than_q = q_objects_compare[equals.pop()]
|
||||
sub_filters = [q_objects_equals[e] for e in equals]
|
||||
sub_filters.append(greater_than_q)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import pytest
|
||||
import json
|
||||
import re
|
||||
import operator
|
||||
|
||||
|
@ -13,6 +12,7 @@ from django.test import TestCase
|
|||
from rest_framework import (
|
||||
exceptions, filters, generics, pagination, serializers, status
|
||||
)
|
||||
from rest_framework.utils import json
|
||||
from rest_framework.pagination import PAGE_BREAK, PageLink
|
||||
from rest_framework.request import Request
|
||||
from rest_framework.test import APIRequestFactory
|
||||
|
|
Loading…
Reference in New Issue
Block a user