From 3c0c54351b58e9386375d2bd7a8c60dadc4bb6e8 Mon Sep 17 00:00:00 2001 From: SaJH Date: Tue, 26 Aug 2025 00:50:53 +0900 Subject: Fixed #36570 -- Removed unnecessary :py domain from documentation roles. Signed-off-by: SaJH --- docs/ref/forms/fields.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/ref/forms/fields.txt') diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index c786239c25..6108932d58 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -919,7 +919,7 @@ For each field, we describe the default widget used if you don't specify .. attribute:: encoder - A :py:class:`json.JSONEncoder` subclass to serialize data types not + A :class:`json.JSONEncoder` subclass to serialize data types not supported by the standard JSON serializer (e.g. ``datetime.datetime`` or :class:`~python:uuid.UUID`). For example, you can use the :class:`~django.core.serializers.json.DjangoJSONEncoder` class. @@ -928,14 +928,14 @@ For each field, we describe the default widget used if you don't specify .. attribute:: decoder - A :py:class:`json.JSONDecoder` subclass to deserialize the input. Your + A :class:`json.JSONDecoder` subclass to deserialize the input. Your deserialization may need to account for the fact that you can't be certain of the input type. For example, you run the risk of returning a ``datetime`` that was actually a string that just happened to be in the same format chosen for ``datetime``\s. The ``decoder`` can be used to validate the input. If - :py:class:`json.JSONDecodeError` is raised during the deserialization, + :class:`json.JSONDecodeError` is raised during the deserialization, a ``ValidationError`` will be raised. Defaults to ``json.JSONDecoder``. -- cgit v1.3