U
    kf”  ã                   @   sZ   d dl mZ 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j
ƒZd	S )
é    )Úforms)ÚUserCreationFormÚAuthenticationForm)ÚUser)Ú
Genesearchc                   @   s@   e Zd Zejejdddœd�d�Zejejdddœd�d�ZdS )Ú	LoginFormzYour Usernameúform-box©ÚplaceholderÚclass©Úattrs)ÚwidgetzYour PasswordN)	Ú__name__Ú
__module__Ú__qualname__r   Ú	CharFieldÚ	TextInputÚusernameÚPasswordInputÚpassword© r   r   ú!/var/www/website-v5/base/forms.pyr      s   þþr   c                   @   s0   e Zd Zejdejdddœd�d�Zdd„ Zd	S )
Ú
SearchForméd   ZSearchr   r	   r   )Ú
max_lengthr   c                 C   s   | j d }| ¡ }|S )NÚquery)Úcleaned_dataÚ
capitalize)Úselfr   r   r   r   Úclean_query4   s    
zSearchForm.clean_queryN)r   r   r   r   r   r   r   r    r   r   r   r   r   +   s   þþr   N)Údjangor   Údjango.contrib.auth.formsr   r   Údjango.contrib.auth.modelsr   Údataset.modelsr   r   ÚFormr   r   r   r   r   Ú<module>   s
   $