a \ Na@sdddlmZddlmZddlmZmZmZmZddlZddlm Z ddl m Z ddZ dd Z dS) )render)CustomerMerchantOrderDeliveryN) randrange)datec Cslt}td}td}t}td}td}t||||||d}|d|i}t|d|S)N%Y-%m-%di@B)uuid created_at updated_atproduct customer_id merchant_idorderorder_detail.html) r uuid1rtodaystrftimerrsaver) requestZ order_uuidZorder_created_atZorder_updated_atZ order_productZorder_customer_idZorder_merchant_id order_objcontextrS/Users/birayaha/postgres-lightweight-locks-simulator/django_app/logistics/orders.pyinsert srcCs:tjj|d}td|_|d|i}t|d|S)N)r r rr) robjectsgetrrrr rr)rr rrrrrupdates r)django.shortcutsrZlogistics.modelsrrrrr randomrdatetimerrrrrrrs