mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 04:02:35 +03:00
fix formatting issues for list serializer validation fix
This commit is contained in:
parent
9ac6417aad
commit
76110bf8a5
|
@ -11,7 +11,6 @@ from django.db import models
|
|||
|
||||
from rest_framework import exceptions, fields, relations, serializers
|
||||
from rest_framework.fields import Field
|
||||
|
||||
from .models import (
|
||||
ForeignKeyTarget, NestedForeignKeySource, NullableForeignKeySource
|
||||
)
|
||||
|
@ -837,7 +836,7 @@ class TestMultipleObjectsValidation(unittest.TestCase):
|
|||
def test_exception_raised_when_data_and_instance_length_different(self):
|
||||
|
||||
with self.assertRaises(AssertionError):
|
||||
serializer = MyClassSerializer(
|
||||
MyClassSerializer(
|
||||
data=[{'value': 'set', 'id': instance.id} for instance in
|
||||
self.objs],
|
||||
instance=self.objs[:-1],
|
||||
|
|
Loading…
Reference in New Issue
Block a user