
^Q\                 @   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)format_lazyc          	      s    j   g k ry  j p i   t d t d 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.
    messagez{}{}c                  s      S)N r   )paramsprefixr   C/var/www/dbchiro/venv/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.textr   r   r   r   r   r
   <module>   s   