o
    Zh                     @   s   d dl mZ d dlmZ d dlmZ d dlmZ d dl	m
Z ddlmZ G dd dejZG d	d
 d
ejZG dd deZG dd deZdS )    )
SignupForm)forms)
EmailField)gettext_lazy   )Userc                   @   s    e Zd ZG dd dejjZdS )UserAdminChangeFormc                   @   s   e Zd ZeZdeiZdS )zUserAdminChangeForm.MetaemailN)__name__
__module____qualname__r   modelr   field_classes r   r   ./var/www/html/mimamsha/mimansha/users/forms.pyMeta   s    r   N)r
   r   r   admin_formsUserChangeFormr   r   r   r   r   r   
   s    r   c                   @   s$   e Zd ZdZG dd dejjZdS )UserAdminCreationFormz{
    Form for User Creation in the Admin Area.
    To change user signup, see UserSignupForm and UserSocialSignupForm.
    c                   @   s,   e Zd ZeZdZdeiZddediiZ	dS )zUserAdminCreationForm.Meta)r	   r	   uniquez"This email has already been taken.N)
r
   r   r   r   r   fieldsr   r   _error_messagesr   r   r   r   r      s    r   N)r
   r   r   __doc__r   UserCreationFormr   r   r   r   r   r      s    r   c                   @      e Zd ZdZdS )UserSignupFormz
    Form that will be rendered on a user sign up section/screen.
    Default fields will be added automatically.
    Check UserSocialSignupForm for accounts created from social.
    Nr
   r   r   r   r   r   r   r   r          r   c                   @   r   )UserSocialSignupFormz
    Renders the form when user has signed up using social accounts.
    Default fields will be added automatically.
    See UserSignupForm otherwise.
    Nr   r   r   r   r   r   '   r   r   N)allauth.account.formsr   allauth.socialaccount.formsSocialSignupFormdjango.contrib.authr   r   django.formsr   django.utils.translationr   r   modelsr   r   r   r   r   r   r   r   r   r   r   <module>   s    