quicktill
quicktill copied to clipboard
Consider removing current_user().dbuser
The dbuser attribute of current_user() will often be a detached ORM instance. It's currently refreshed in an ad-hoc way.
Consider removing this attribute and updating the rest of the code to use the userid attribute instead, getting a User object via the current database session every time it is needed.
(Prompted by 8f60116f941db26a5b91b06ec9eb4079f20194e5 which shouldn't have had to be fixed that way!)