django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.86k stars 939 forks source link

.save() is not working #1536

Closed dinesh1299 closed 1 month ago

dinesh1299 commented 1 month ago

my_query = Model.objects.using('dbname').filter(ref_id=self.utils.my_ref_id) my_query_first = my_query.first() my_query_first.last_updated = self.utils.date_obj1.replace(tzinfo=tzlocal()) - timedelta(days=1) my_query_first.save(using='dbname')

I couldn't able to update the value of first in queryset

bmispelon commented 1 month ago

Hi,

This issue tracker is for problems with the Django website itself. To get help with using Django, please use the support channels (forum, discord, ...) linked on that page: https://www.djangoproject.com/community/

Have a nice day 🌞