mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-28 04:24:00 +03:00
Fix formatting and resolve pre-commit errors
This commit is contained in:
parent
f471f5871f
commit
75e1c02019
|
@ -25,8 +25,9 @@ from django.utils.timezone import activate, deactivate, override
|
|||
import rest_framework
|
||||
from rest_framework import exceptions, serializers
|
||||
from rest_framework.fields import (
|
||||
AlphabeticFieldValidator, AlphanumericFieldValidator, BuiltinSignatureError, CustomLengthValidator, DjangoImageField, SkipField, empty,
|
||||
is_simple_callable
|
||||
AlphabeticFieldValidator, AlphanumericFieldValidator,
|
||||
BuiltinSignatureError, CustomLengthValidator, DjangoImageField, SkipField,
|
||||
empty, is_simple_callable
|
||||
)
|
||||
from tests.models import UUIDForeignKeyTarget
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
from django.test import TestCase
|
||||
|
||||
from rest_framework.status import (
|
||||
is_client_error, is_informational, is_redirect, is_server_error, is_success
|
||||
is_client_error, is_informational, is_redirect, is_server_error,
|
||||
is_success
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ from django.test import TestCase
|
|||
from rest_framework import serializers
|
||||
from rest_framework.exceptions import ValidationError
|
||||
from rest_framework.validators import (
|
||||
BaseUniqueForValidator, UniqueTogetherValidator, UniqueValidator, qs_exists
|
||||
BaseUniqueForValidator, UniqueTogetherValidator, UniqueValidator,
|
||||
qs_exists
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user