Re: update object without updating auto_now fields

2019-02-13 Thread Андрей Маслов
MyModel.objects.filter(pk=obj.pk).update(...) https://docs.djangoproject.com/en/2.1/ref/models/fields/#django.db.models.DateField.auto_now The field is only automatically updated when calling Model.save() .

update object without updating auto_now fields

2019-02-13 Thread Mohammad Etemaddar
I think about times that I need to edit user profiles without touching auto_now field. How can I do it? -- 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 django-u