o
    [h                     @   s0   d dl mZ d dlmZ d dlmZ dd ZdS )    )ValidationError)SimpleLazyObject)format_lazyc                    sl   j gkr(jp
i ttdtfddtfdd i dS t fddj D S )zi
    Prefix a validation error message while maintaining the existing
    validation data structure.
    z{} {}c                      s     S N r   )paramsprefixr   /home/ubuntu/experiments/live_experiments/Pythonexperiments/Otree/venv/lib/python3.10/site-packages/django/contrib/postgres/utils.py<lambda>   s    z)prefix_validation_error.<locals>.<lambda>c                      s
    j  S r   )messager   )errorerror_paramsr   r	   r
      s   
 )r   coder   c                    s   g | ]	}t | qS r   )prefix_validation_error).0e)r   r   r   r   r	   
<listcomp>   s    z+prefix_validation_error.<locals>.<listcomp>)Z
error_listr   r   r   r   )r   r   r   r   r   )r   r   r   r   r   r	   r      s   

r   N)Zdjango.core.exceptionsr   Zdjango.utils.functionalr   Zdjango.utils.textr   r   r   r   r   r	   <module>   s    