res234

Results 6 comments of res234

I've noticed a similar issue with delayed annotation from Pydantic. Copying the documentation exactly, the following code works. Here is my `models.py` file. This code runs well: ``` class TeamBase(SQLModel):...

@LucidDan thank you so much! I did tinker around using `update_forward_refs()` but I ran into NameErrors as well. Your solution of explicitly passing the the namespace gets around this! I...

@lobotmcj Yes, I found the exact same thing. You have to update the forward refs for every forward reference. I may be doing something wrong as well though!

@masreplay What updates were you looking for specifically? I think @LucidDan offered a solution.

@Butch78 I think we are having different issues. In your first code example, you can add objects with children because you are creating the `Team` object directly. My example is...