I am following the example described in the book, Flask Web Development, by Miguel Grinberg.
I checked out at 12b (Chapter on Followers), but the app does not persist.
After changing the model it worked. However, I'm not sure, if it was the right way to go about it.
class User(UserMixin, db.Model):
#...
def follow(self, user):
if not self.is_following(user):
f = Follow(follower=self, followed=user)
db.session.add(f)
after adding: db.session.commit() it worked, however, I might be missing something, as this is the first "error" that I encountered so far.