When an artist logs in, the persons are serialized with present_minimal which is missing "is_bot" column.
Some requirements are outdated.
We don't have any pre-commit for autoflake.
For timespents it's possible to set them with negative or zero values, the permissions are too permissive and an artist for example can't delete a time spent.
Solution
Add is_bot column in present_minimal.
Upgrade outdated requirements.
Add a pre-commit for autoflake.
For timespents : add a checkconstraint for only positive values of duration, better permissions, refactoring...
Problem
Solution