INNER CODE UNIT · Python
__repr__
yezyilomo/django-restql · django_restql/fields.py:270
def __repr__(self):
return (
"BaseNestedField(%s, many=True)" %
(serializer_class.__name__, )
)
class BaseNestedFieldSerializer(serializer_class, BaseNestedField):
# These variables might be used before `to_internal_value` method is called
# so we're creating them to make sure they're available
# as long as the class is created
is_replaceable = accept_pk_only or accept_pk
should_delete_on_null = delete_on_null
class Meta(serializer_class.Meta):
list_serializer_class = BaseNestedFieldListSerializer
def run_validation(self, data):