INNER CODE UNIT · Python

BaseNestedFieldSerializerFactory

yezyilomo/django-restql · django_restql/fields.py:50

def BaseNestedFieldSerializerFactory(
        *args,
        accept_pk=False,
        accept_pk_only=False,
        delete_on_null=False,
        serializer_class=None,
        allow_remove_all=False,
        allow_delete_all=False,
        create_ops=CREATE_OPERATIONS,
        update_ops=UPDATE_OPERATIONS,
        **kwargs):
    many = kwargs.get("many", False)
    partial = kwargs.get("partial", None)

    assert not (
        many and (accept_pk or accept_pk_only)
    ), (
        "May not set both `many=True` and `accept_pk=True` "

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…