paulpierre/RasaGPT

Session errors

MaHDiaLaGaB opened this issue · 0 comments

This is not the only error I had from the database model:
Parent instance <Organization at 0xffffa99dcd40> is not bound to a Session; lazy load operation of attribute 'projects' cannot proceed

this is one of almost five errors when I tried to create a project for Org or read a project by Org id.

The reason for this error is the ModelBase structure and not using any linting tools, the all-class needs to be restructured
this class 👇

class BaseModel(SQLModel):