I have a method on my Post model that allows me to check if a user has liked it. If not given a user, it will default to the current user from the Flask request context. Given that no argument is needed to call the function, it would be nice to serialize the output.
I have a method on my Post model that allows me to check if a user has liked it. If not given a user, it will default to the current user from the Flask request context. Given that no argument is needed to call the function, it would be nice to serialize the output.