There’s currently a bit of faff involved in reading and writing JSON fields to the database, and this is currently inline in the code.
Moving this sort of thing to an ORM layer would be neater. To be clear, I don’t mean using a full ORM (like peewee – though I’ve used peewee before and I quite like it). I think I mean adding an extra models.py where this sort of code can live.
There’s currently a bit of faff involved in reading and writing JSON fields to the database, and this is currently inline in the code.
Moving this sort of thing to an ORM layer would be neater. To be clear, I don’t mean using a full ORM (like peewee – though I’ve used peewee before and I quite like it). I think I mean adding an extra models.py where this sort of code can live.