3
(hร  ใ               @   s<   d dl mZ d dlmZ d dlmZ d dlmZ dd ZdS )้    )ฺunicode_literals)ฺValidationError)ฺSimpleLazyObject)ฺstring_concatc                sj   j gkrNjpi tttfddtfdd tfdS t fddj D S )zi
    Prefix a validation error message while maintaining the existing
    validation data structure.
    c                  s     S )Nฉ r   )ฺparamsฺprefixr   ๚A/tmp/pip-install-q3hcpn_q/Django/django/contrib/postgres/utils.pyฺ<lambda>   s    z)prefix_validation_error.<locals>.<lambda>c                  s
    j  S )N)ฺ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   ฺdict)r   r   r   r   r   )r   r   r   r   r   r	   r      s    
r   N)	ฺ
__future__r   Zdjango.core.exceptionsr   Zdjango.utils.functionalr   Zdjango.utils.translationr   r   r   r   r   r	   ฺ<module>   s   