o
    di+                     @   s<   d dl mZ d dlmZ G dd deZG dd deZdS )    )serializers)DynamicFieldsSerializerc                   @   s4   e Zd ZdZejdddddZejdddddZdS )AdminLoginSerializera$  
    This is the AdminLoginSerializer class responsible for serializing user data during login.

    It is used for authenticating and generating authentication tokens for administrators.

    Fields:
        email (str): The email address of the administrator.
        password (str): The password provided during login.

    Meta:
        model (User): The model used for serialization.
        fields (tuple): Specifies the fields included in the serialization process.
        read_only_fields (tuple): Fields that are marked as read-only.
    TFrequiredallow_blank
allow_null
write_onlyN)	__name__
__module____qualname____doc__r   	CharFieldpassword
EmailFieldemail r   r   m/var/www/html/evchargy.com/django-station-ev/station_ev/apps/account/serializers/admin_account_serializers.pyr      s    
r   c                   @   sF   e Zd ZdZejdddddZejdddddZejdddddZ	dS )AdminChangePasswordSerializera  
    This is the AdminChangePasswordSerializer class responsible for serializing data during the password change process.

    It is used for changing the password of administrators by providing the old and new passwords.

    Fields:
        email (str): The email address of the administrator.
        old_password (str): The current password of the administrator.
        new_password (str): The new password to set for the administrator.
    TFr   N)
r
   r   r   r   r   r   r   r   old_passwordnew_passwordr   r   r   r   r      s    
r   N)rest_frameworkr   base.serializersr   r   r   r   r   r   r   <module>   s    