|
6 | 6 | from django.core.exceptions import ValidationError |
7 | 7 | from django.utils import timezone |
8 | 8 | from ipware import get_client_ip |
9 | | -from rest_framework import mixins, pagination, response, status, viewsets |
| 9 | +from rest_framework import mixins |
| 10 | +from rest_framework import pagination |
| 11 | +from rest_framework import response |
| 12 | +from rest_framework import status |
| 13 | +from rest_framework import viewsets |
10 | 14 | from rest_framework.parsers import JSONParser |
11 | 15 |
|
12 | 16 | import morango |
13 | 17 | from morango import errors |
14 | | -from morango.api import permissions, serializers |
15 | | -from morango.constants import transfer_stages, transfer_statuses |
16 | | -from morango.constants.capabilities import ASYNC_OPERATIONS, GZIP_BUFFER_POST |
| 18 | +from morango.api import permissions |
| 19 | +from morango.api import serializers |
| 20 | +from morango.constants import transfer_stages |
| 21 | +from morango.constants import transfer_statuses |
| 22 | +from morango.constants.capabilities import ASYNC_OPERATIONS |
| 23 | +from morango.constants.capabilities import GZIP_BUFFER_POST |
17 | 24 | from morango.models import certificates |
18 | | -from morango.models.core import Buffer, Certificate, InstanceIDModel, SyncSession, TransferSession |
| 25 | +from morango.models.core import Buffer |
| 26 | +from morango.models.core import Certificate |
| 27 | +from morango.models.core import InstanceIDModel |
| 28 | +from morango.models.core import SyncSession |
| 29 | +from morango.models.core import TransferSession |
19 | 30 | from morango.models.fields.crypto import SharedKey |
20 | 31 | from morango.sync.context import LocalSessionContext |
21 | 32 | from morango.sync.controller import SessionController |
22 | | -from morango.utils import CAPABILITIES, _assert, parse_capabilities_from_server_request |
| 33 | +from morango.utils import _assert |
| 34 | +from morango.utils import CAPABILITIES |
| 35 | +from morango.utils import parse_capabilities_from_server_request |
23 | 36 |
|
24 | 37 | if GZIP_BUFFER_POST in CAPABILITIES: |
25 | 38 | from .parsers import GzipParser |
|
0 commit comments