Skip to content

Better errors when serializer has incorrectly named field. #2262

@picturedots

Description

@picturedots

If I have a mistake in my model serializer where there's a serializer field name that isn't mapped to a field in the model, e.g.

class MySerializer(serializers.ModelSerializer):
    bad_serializer_field_name = MyCustomSerializer()

then the serializer fails silently and by returning no no data. It would be nice for debugging if the serialization process would issue a warning.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy