Improve django.core.serializers.get_serializer() docs
|Reported by:||Roy Smith||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 6 years ago by
|Component:||Core (Serialization) → Documentation|
|Patch needs improvement:||unset|