U
    e                     @   sL   d dl mZmZ d dlmZ d dlmZ G dd deZG dd deZ	dS )	    )AuthenticationFormPasswordChangeForm)ValidationError)gettext_lazyc                       s6   e Zd ZdZejdediZdZ fddZ  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                    s2   t  | |js.t| jd dd| jjidd S )Nr   username)codeparams)superconfirm_login_allowedZis_staffr   error_messagesZusername_fieldZverbose_name)selfuser	__class__ >/tmp/pip-unpacked-wheel-lctamlir/django/contrib/admin/forms.pyr      s    
z-AdminAuthenticationForm.confirm_login_allowed)
__name__
__module____qualname____doc__r   r   _required_css_classr   __classcell__r   r   r   r   r      s    r   c                   @   s   e Zd ZdZdS )AdminPasswordChangeFormr   N)r   r   r   r   r   r   r   r   r      s   r   N)
Zdjango.contrib.auth.formsr   r   Zdjango.core.exceptionsr   Zdjango.utils.translationr   r   r   r   r   r   r   r   <module>   s   