Answer the question
In order to leave comments, you need to log in
How to make sqlalchemy friends with json?
Good evening, I ask you to resolve a sore point. Own knowledge is not enough, and Google does not google (
There is a certain model
__tablename__ = 'organisations_address'
id = db.Column(db.Integer, primary_key=True)
area = db.Column(db.JSON, nullable=True)
area = '{' + f"\"code\":\"{area_code}\", \"name\":\"{area_name}\"" + '}',
"{\"code\":\"string\"}"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question