
    	i                     f    d dl mZmZ d dlmZ d dlmZ  G d de          Z G d de          Z	dS )	    )AuthenticationFormPasswordChangeForm)ValidationError)gettext_lazyc                   R     e Zd ZdZi ej        d ed          iZdZ fdZ xZ	S )AdminAuthenticationFormz=
    A custom authentication form used in the admin app.
    invalid_loginztPlease enter the correct %(username)s and password for a staff account. Note that both fields may be case-sensitive.requiredc                     t                                          |           |j        s)t          | j        d         dd| j        j        i          d S )Nr	   username)codeparams)superconfirm_login_allowedis_staffr   error_messagesusername_fieldverbose_name)selfuser	__class__s     R/srv/django_bis/venv311/lib/python3.11/site-packages/django/contrib/admin/forms.pyr   z-AdminAuthenticationForm.confirm_login_allowed   sb    %%d+++} 	!#O4$"D$7$DE   	 	    )
__name__
__module____qualname____doc__r   r   _required_css_classr   __classcell__)r   s   @r   r   r      s}         

+D
 
 N $        r   r   c                       e Zd ZdZdS )AdminPasswordChangeFormr
   N)r   r   r   r    r   r   r"   r"      s        #r   r"   N)
django.contrib.auth.formsr   r   django.core.exceptionsr   django.utils.translationr   r   r   r"   r#   r   r   <module>r'      s    L L L L L L L L 2 2 2 2 2 2 6 6 6 6 6 6    0   0$ $ $ $ $0 $ $ $ $ $r   