
    (ej,                     L    S SK Jr  S SKJr  S SKJr  \R                  S 5       rg)    )transaction)timezone)ProductViewc           	          [         R                  " 5       n[        R                  R	                  UU X"S.UUUS.S9u  p4U$ )N)
viewedDateupdatedDate)r   createdDater   )	productIdshoppingAccountIddefaultscreate_defaults)r   nowr   objectsupdate_or_create)shopping_accountproductr   product_view_s        t/Users/waleedhassanin/Documents/GitHub/mama_care_co/mama_care_backend/mama_care_api/shop/synchronisation/activity.pyrecord_product_viewr      sL    
,,.C!))::* #8
	 ; 	OL     N)	django.dbr   django.utilsr   shop.modelsr   atomicr    r   r   <module>r      s(    ! ! #  r   