mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 04:20:12 +03:00
Merge 5fdeb74405
into 139c8fe3d1
This commit is contained in:
commit
6c743e9446
|
@ -986,6 +986,7 @@ class ModelSerializer(Serializer):
|
|||
depth = getattr(self.Meta, 'depth', 0)
|
||||
|
||||
if depth is not None:
|
||||
assert isinstance(depth, int), "'depth' should be integer variable."
|
||||
assert depth >= 0, "'depth' may not be negative."
|
||||
assert depth <= 10, "'depth' may not be greater than 10."
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user