o
    	wh                     @   sN   d dl mZ d dlmZmZ d dlmZmZ ddlmZ G dd dej	Z
dS )	    )serializers)datetime	timedelta)	RateListsDaytimes   )DriverVehiclesc                   @   s   e Zd 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dd ZdS )	DriverSerializerz	user.name)sourcezuser.mobilez
user.emailzuser.profile_picc                 C   s"   t t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   @/var/www/html/DRIVERZZ_DRIVER_APIS/authentication/serializers.pyget_vehicle_models   s   z#DriverSerializer.get_vehicle_modelsN)__name__
__module____qualname__r   	CharFieldnamemobileemail
ImageFieldprofile_picIntegerFieldgenderlicensce_nodate_of_birth
FloatField
experiencelocationhouse_numberpincodeuniform_typestation_type	trip_typetransmission_typeSerializerMethodFieldr   r   r   r   r   r   r	      s$    r	   N)rest_frameworkr   r   r   rates.modelsr   r   modelsr   
Serializerr	   r   r   r   r   <module>   s
    