Today I learned: Replace function in Django’s ORM.
Sometimes we stumble across a bug or a change in the business logic that forces us to change the value of a column based on another from the same table. I thought that Django might have this solved and indeed it has through the database functions.
In my case I had to update the value of a column replacing its current value and, at the same time, using the value of another column.
Read More →