So let's assume that I have a model with a jsonfield while using Postgres as a database
class Baum(models.Model):
myjson = models.JSONField(...)
Now I'd like to know what would be the best way to edit the model fields saving behaviour/interaction with the database
- myjson stores nested api responses, so dicts&lists
- When new data comes into myjson, dont delete/overwrite the old by calling save()
- -> Instead keep the old data and just add the new data, (if a func which proves that the data is new returns True)
- I need the data together, in one myjson field where from time to time pairs are coming on top of it. I am thankful for tips!