o
    þÞhÿ  ã                   @   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                       s:   e Zd ZdZi 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_allowedÚis_staffr   Úerror_messagesÚusername_fieldÚverbose_name)ÚselfÚuser©Ú	__class__© úZ/var/www/html/premium_crap/venv/lib/python3.10/site-packages/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)
Údjango.contrib.auth.formsr   r   Údjango.core.exceptionsr   Údjango.utils.translationr   r   r   r   r   r   r   r   Ú<module>   s
    