-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError from /Lesson-3/20_JSON-Solution/ #64
Comments
Add the serialize method within the class declaration of the menu item class |
Hi, I get the same error after I join tables. So how do you join tables and return the result in JSON? `class JobContexts(db.Model):
class Jobs(db.Model):
and
Anyone knows about good documentation about flask_sqlalchemy providing more info on how to join tables etc.? Cheers, |
return jsonify(Menu_List =[i.serialize for i in Menu_Item]) |
Hvuhionpm |
I got this error
this my webbyflask.py
and this is my database_setup.py
The text was updated successfully, but these errors were encountered: