← Back
Editing: base.cpython-311.pyc
� �|�e�- � �, � d Z ddlmZ ddlmZ ddlmZ e� � Z G d� de � � Z G d� de� � Z G d � d e� � Z G d� de� � Z G d � d� � Z G d� d� � Z G d� d� � Z G d� d� � Zd� Zd� Zd� ZdS )z; Module for abstract serializer/unserializer base classes. � )�StringIO)�ObjectDoesNotExist)�modelsc � � e Zd ZdZdS )�SerializerDoesNotExistz'The requested serializer was not found.N��__name__� __module__�__qualname__�__doc__� � �>/usr/lib/python3/dist-packages/django/core/serializers/base.pyr r s � � � � � �1�1��Dr r c � � e Zd ZdZdS )�SerializationErrorz,Something bad happened during serialization.Nr r r r r r s � � � � � �6�6��Dr r c �( � e Zd ZdZed� � � ZdS )�DeserializationErrorz.Something bad happened during deserialization.c �0 � | |�d|�d|�d|�d�� � S )zs Factory method for creating a deserialization error which has a more explanatory message. z: (z:pk=z) field_value was '�'r )�cls�original_exc�model�fk�field_values r �WithDatazDeserializationError.WithData s3 � � �s�L�L�L�%�%�%�QS�QS�QS�U`�U`�U`�a�b�b�br N)r r r r �classmethodr r r r r r s8 � � � � � �8�8��c� c� �[�c� c� cr r c � � e Zd ZdZd� ZdS )�M2MDeserializationErrorzCSomething bad happened during deserialization of a ManyToManyField.c �"