o
    ifN                     @   s@   d dl mZ d dlmZ G dd dejZG dd dejZdS )    )serializers)DriverVehiclesc                   @   s   e Zd Ze ZejddZejddZejddZ	ejddZ
e Ze Ze Ze Ze Ze Ze Ze Ze Ze Ze Ze Ze Zdd ZdS )	DriverPartnerSerializer	user.namesourcezuser.mobilez
user.emailzuser.is_activec                 C   s$   t tjj|jjdjddd}|S )N)	driver_idvehicle_modelT)flat)listr   objectsfilteruseridvalues_list)selfobjvehicle_models r   ]/media/darth/New Volume E/PROJECTS/DRIVERZZ/DRIVERZZ_ADMIN_APIS/driver_partners/serializer.pyget_vehicle_models   s    z*DriverPartnerSerializer.get_vehicle_modelsN)__name__
__module____qualname__r   IntegerFieldr   	CharFieldnamemobileemailstatusgenderlicensce_nodate_of_birth
FloatField
experiencelocationhouse_numberpincodeuniform_typestation_type	trip_typetransmission_typeSerializerMethodFieldr   DateTimeField
created_atr   r   r   r   r   r      s(    r   c                   @   s$   e Zd ZejddZejddZdS )DriverPartnerListSerializerzuser.idr   r   N)r   r   r   r   r   valuer   labelr   r   r   r   r/   "   s    r/   N)rest_frameworkr   driver_partners.modelsr   
Serializerr   r/   r   r   r   r   <module>   s    