๎
ชอ Xร  ใ               @   sP   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          	      s    j   g k rv  j p i   t d t t   f d d    t   f d d     d   d t     St     f d d    j  D  S)	zi
    Prefix a validation error message while maintaining the existing
    validation data structure.
    ฺmessagec                  s      S)Nฉ r   )ฺparamsฺprefixr   ๚K/home/ubuntu/projects/ifolica/build/django/django/contrib/postgres/utils.pyฺ<lambda>   s    z)prefix_validation_error.<locals>.<lambda>c                  s     j   S)N)r   r   )ฺerrorฺerror_paramsr   r
   r      s    ฺcoder   c                s%   g  |  ] } t  |       q Sr   )ฺ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   