mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
isort
This commit is contained in:
parent
9412ed16a1
commit
29d8796b1d
|
@ -3,18 +3,17 @@ Pagination serializers determine the structure of the output that should
|
|||
be used for paginated responses.
|
||||
"""
|
||||
import operator
|
||||
|
||||
from base64 import b64decode, b64encode
|
||||
from collections import OrderedDict, namedtuple
|
||||
from urllib import parse
|
||||
from functools import reduce
|
||||
from urllib import parse
|
||||
|
||||
from django.core.paginator import InvalidPage
|
||||
from django.core.paginator import Paginator as DjangoPaginator
|
||||
from django.db.models.query import Q
|
||||
from django.template import loader
|
||||
from django.utils.encoding import force_str
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.db.models.query import Q
|
||||
|
||||
from rest_framework.compat import coreapi, coreschema
|
||||
from rest_framework.exceptions import NotFound
|
||||
|
|
|
@ -4,14 +4,15 @@ from base64 import b64encode
|
|||
from urllib import parse
|
||||
|
||||
import pytest
|
||||
|
||||
from rest_framework import generics
|
||||
from rest_framework.pagination import Cursor, CursorPagination
|
||||
from rest_framework.filters import OrderingFilter
|
||||
from rest_framework.pagination import Cursor, CursorPagination
|
||||
from rest_framework.permissions import AllowAny
|
||||
from rest_framework.serializers import ModelSerializer
|
||||
from rest_framework.test import APIRequestFactory
|
||||
from .models import ExamplePaginationModel
|
||||
|
||||
from .models import ExamplePaginationModel
|
||||
|
||||
factory = APIRequestFactory()
|
||||
|
||||
|
|
|
@ -1,21 +1,20 @@
|
|||
import pytest
|
||||
import re
|
||||
import operator
|
||||
|
||||
import re
|
||||
from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
from django.core.paginator import Paginator as DjangoPaginator
|
||||
from django.db.models.query_utils import Q
|
||||
from django.db import models
|
||||
from django.db.models.query_utils import Q
|
||||
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
|
||||
from rest_framework.utils import json
|
||||
|
||||
factory = APIRequestFactory()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user