
    3i                     p    d dl mZ d dlmZ  G d dej                        Z G d dej                        Zy)    )serializers)Notificationc                       e Zd ZdZ ej
                  d      Z ej                  dd      Z ej                  d      Z	y)CallNotificationSerializerz7Nested serializer for call information in notificationsT)	read_onlyr   
allow_nullN)
__name__
__module____qualname____doc__r   IntegerFieldid	CharFieldcaller_namefrom_number     W/var/www/html/dp2/backend_v2.1/server/apps/calls/serializers/notification_serializer.pyr   r      s=    A	!	!	!D	1B'+''$4HK'+''$7Kr   r   c                       e Zd Z ej                  d      Z ej                  dd      Z ej                  ddd      Z e	dd      Z
 G d	 d
      Zy)NotificationSerializerzrecipient.profile.full_name)sourcezrecipient.idT)r   r   zcall.id)r   r   r	   r   c                        e Zd ZeZg dZg dZy)NotificationSerializer.Meta)r   notification_typetitlemessageis_readread_at
created_atrecipient_idrecipient_namecall_idcall)r   r   r   N)r
   r   r   r   modelfieldsread_only_fieldsr   r   r   Metar      s    
 8r   r(   N)r
   r   r   r   r   r"   r   r!   r#   r   r$   r(   r   r   r   r   r      sV    *[**2OPN+;++>TRL&k&&i4TXYG%FD8 8r   r   N)rest_frameworkr   apps.calls.modelsr   
Serializerr   ModelSerializerr   r   r   r   <module>r-      s/    & *8!7!7 88[88 8r   