How to migrate from rx.Model to sqlmodel.SQLModel #5951
-
|
I saw in the release notes of 0.8.15 that
But this doesn't seem to be right, as running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
When migrating to Reflex 0.8.15 I just replaced the base class as in |
Beta Was this translation helpful? Give feedback.
When migrating to Reflex 0.8.15 I just replaced the base class as in
class Foo(rx.Model, table=True)==>class Foo(SQLModel, table=True)and things just worked. I don't know iftable=Trueis still necessary, haven't tried yet removing it. And I did not add the decorator@rx.ModelRegistry.registerthough as in your example.