You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you already have a model with a DateField for birthdays and you change that field for BirthdayField field you don't have the %s_dayofyear_internal field updated due to this field is updated with a pre_save signal. So, you can not use the provided methods.
You have to use something like [c.save() for c in Client.objects.all()] to update all your Client objects getting the presignal executed for each object.
It's a good idea you to document this problem in your docs.
Do you know a better way to update that field instead of use that loop?
The text was updated successfully, but these errors were encountered:
When you already have a model with a DateField for birthdays and you change that field for
BirthdayField
field you don't have the%s_dayofyear_internal
field updated due to this field is updated with apre_save
signal. So, you can not use the provided methods.You have to use something like
[c.save() for c in Client.objects.all()]
to update all yourClient
objects getting the presignal executed for each object.It's a good idea you to document this problem in your docs.
Do you know a better way to update that field instead of use that loop?
The text was updated successfully, but these errors were encountered: