You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot recreate the search example on https://www.flask-meld.dev/ which shows the function users() running a query and returning the results. Then the template directly uses those objects, such as in <h3>{{ user.name }}</h3>.
When I try to recreate that pattern, I get an exception: TypeError: Object of type XYZ is not JSON serializable, related to line 259 in componenty.py.
I was hoping that since the templates were rendered on the server, I would not need to write a serializer for my models. Is that not correct?
The text was updated successfully, but these errors were encountered:
I think it's a dependency issue. Flask-SQLALchemy-3.0.2 (the latest version as at now) is not compatible with the version of Flask that supports Flask-Meld. See Issue #53
I cannot recreate the search example on https://www.flask-meld.dev/ which shows the function
users()
running a query and returning the results. Then the template directly uses those objects, such as in<h3>{{ user.name }}</h3>
.When I try to recreate that pattern, I get an exception:
TypeError: Object of type XYZ is not JSON serializable
, related to line 259 in componenty.py.I was hoping that since the templates were rendered on the server, I would not need to write a serializer for my models. Is that not correct?
The text was updated successfully, but these errors were encountered: