
uÅÏ^é  ã               @   sf   d  d l  m Z d  d l m Z m Z d  d l m Z Gd d „  d e ƒ Z Gd d „  d e ƒ Z	 d S)	é    )Úforms)ÚAuthenticationFormÚPasswordChangeForm)Úgettext_lazyc                   sI   e  Z d  Z d Z e j d e d ƒ i – Z d Z ‡  f d d †  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                sK   t  ƒ  j | ƒ | j sG t j |  j d d d d d |  j j i ƒ‚ d  S)Nr   ÚcodeÚparamsÚusername)ÚsuperÚconfirm_login_allowedZis_staffr   ZValidationErrorÚerror_messagesZusername_fieldZverbose_name)ÚselfÚuser)Ú	__class__© ú</tmp/pip-build-8lau8j11/django/django/contrib/admin/forms.pyr      s    	z-AdminAuthenticationForm.confirm_login_allowed)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú_Úrequired_css_classr   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djangor   Zdjango.contrib.auth.formsr   r   Zdjango.utils.translationr   r   r   r   r   r   r   r   Ú<module>   s   