
    R
h                     ,    d dl mZ  G d d          ZdS )   )AGNOCOMPLETE_USER_ATTRIBUTEc                   "     e Zd ZdZ fdZ xZS )UserContextFormMixina  
    Form Mixin that passes the user context to its fields.

    This property takes the name of the ``AGNOCOMPLETE_USER_ATTRIBUTE``
    constant value, to avoid conflicting with any other field property.

    This value will be accessed at validation time, and may only concern
    autocomplete fields that are using context-based querysets
    (e.g.: :class:`AgnocompleteModelField`).
    c                     || _          t                      j        |i | | j         r7| j                                        D ]}t          |t          | j                    d S d S )N)usersuper__init__fieldsvaluessetattrr   )selfr   argskwargsfield	__class__s        ]/var/www/html/01_SiteInternet/03_Maps/venv/lib/python3.11/site-packages/agnocomplete/forms.pyr	   zUserContextFormMixin.__init__   s    	$)&)))9 	G++-- G G:DIFFFF	G 	GG G    )__name__
__module____qualname____doc__r	   __classcell__)r   s   @r   r   r      sK        	 	G G G G G G G G Gr   r   N)	constantsr   r    r   r   <module>r      sS    2 2 2 2 2 2G G G G G G G G G Gr   