î
ªÍ XÐ  ã               @   sv   d  d l  m Z 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)
é    )Úunicode_literals)Úforms)ÚAuthenticationFormÚPasswordChangeForm)Úugettext_lazyc               @   s;   e  Z d  Z d Z i e d ƒ d 6Z d Z d d „  Z d S)ÚAdminAuthenticationFormz=
    A custom authentication form used in the admin app.
    ztPlease enter the correct %(username)s and password for a staff account. Note that both fields may be case-sensitive.Úinvalid_loginÚrequiredc             C   sJ   | j  s | j rF t j |  j d d d d i |  j j d 6ƒ‚ n  d  S)Nr   ÚcodeÚparamsÚusername)Z	is_activeZis_staffr   ZValidationErrorÚerror_messagesZusername_fieldZverbose_name)ÚselfÚuser© r   úH/home/ubuntu/projects/ifolica/build/django/django/contrib/admin/forms.pyÚconfirm_login_allowed   s
    z-AdminAuthenticationForm.confirm_login_allowedN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú_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)Ú
__future__r   Zdjangor   Zdjango.contrib.auth.formsr   r   Zdjango.utils.translationr   r   r   r   r   r   r   r   Ú<module>   s
   