
    >_Pf                     D    d dl mZ d dlmZ  G d dej                  ZdS )    )serializers)DriverVehiclesc                   @   e Zd Z ej                    Z ej        d          Z ej        d          Z ej        d          Z	 ej        d          Z
 ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Z ej                    Zd ZdS )DriverPartnerSerializerz	user.name)sourcezuser.mobilez
user.emailzuser.is_activec                     t          t          j                            |j        j                                      dd                    }|S )N)	driver_idvehicle_modelT)flat)listr   objectsfilteruseridvalues_list)selfobjvehicle_modelss      LC:\Users\hp\python\driverzz\driverzz-admin-api\driver_partners\serializer.pyget_vehicle_modelsz*DriverPartnerSerializer.get_vehicle_models   sB    n4;;;TT``apw{`||}}    N)__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      sY       	!	!	#	#B ; 444D"["-888F!K!666E%[%-=>>>F%[%''F'+'))K)K)++M''))J#k#%%H(;(**L#k#%%G+;+--L+;+--L((**I00226[688N**,,J    r   r   N)rest_frameworkr   driver_partners.modelsr   
Serializerr   r0   r   r   <module>r4      s`    & & & & & & 1 1 1 1 1 1    k4     r   