How to update single record particular value in django..
h_date=Holiday.objects.filter(start_date=month_start,end_date=month_end).values_list('date',flat=True)
for h_date in holiday:
Model.objects.filter(emp=request.user). update(date =h_date,in_time=None)
This above query is updating all dates I want to update particular date is
available then update record..
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAMCU6CoHk8rsnAzijp4UFYqtv6i7Gkq74yaLXp4iXH-Puu-6XQ%40mail.gmail.com.