Improve django.core.serializers.get_serializer() docs
|Reported by:||RoySmith||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
By experimentation, it appears that calling get_serializer() with an unknown format raises KeyError, but this is not documented. It should be documented what the behavior is.
Even better (maybe this should be a separate issue), it should raise some more specific exception, which would make it easier to handle at a higher level (such as middleware).
Change History (7)
comment:1 Changed 4 years ago by Mathieu Agopian <mathieu.agopian@…>
- Component changed from Core (Serialization) to Documentation
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 4 years ago by jacob
- Easy pickings set
- Triage Stage changed from Unreviewed to Accepted