
    ~g\                     .    d dl mZ  G d de          ZdS )    )BaseUserManagerc                       e Zd ZdZd Zd ZdS )CustomUserManagerzv
    Custom user model manager where email is the unique identifiers
    for authentication instead of usernames.
    c                     |st          d          |                     |          } | j        dd|i|}|                    |           |                    | j                   |S )zK
        Create and save a User with the given email and password.
        zThe Email must be setemail)using )
ValueErrornormalize_emailmodelset_passwordsavedb)selfr   passwordextra_fieldsusers        //var/www/html/e360mart/login_signup/managers.pycreate_userzCustomUserManager.create_user   sy      	64555$$U++tz66666(###			       c                 <   |                     dd           |                     dd           |                     dd           |                    d          durt          d          |                    d          durt          d           | j        ||fi |S )zP
        Create and save a SuperUser with the given email and password.
        is_staffTis_superuser	is_activez"Superuser must have is_staff=True.z&Superuser must have is_superuser=True.)
setdefaultgetr
   r   )r   r   r   r   s       r   create_superuserz"CustomUserManager.create_superuser   s     	
D111555T222J''t33ABBBN++477EFFF  tx@@<@@@r   N)__name__
__module____qualname____doc__r   r   r	   r   r   r   r      sA         
  $A A A A Ar   r   N)django.contrib.auth.base_userr   r   r	   r   r   <module>r#      sU    9 9 9 9 9 9)A )A )A )A )A )A )A )A )A )Ar   