Orm query

34 views
Skip to first unread message

Prashanth Patelc

unread,
Feb 17, 2023, 8:12:40 AM2/17/23
to django...@googlegroups.com
Hi all,

This is my model if model contain previous month dates I need to and store the data If user is new previous data is not available I need to store directly to db .
How to write orm query?


Attendance.object.filter(user=emp,date=enddate,crea_date=strdate)



If dates is not available in attendance model how to write orm query?
Reply all
Reply to author
Forward
0 new messages