Replies: 1 comment
-
I'll close this as it's old enough. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
The code above can also be found in models.py and backend.py.
It all works pretty much as expected, except this part:
As soon as I uncomment the middle line, I cannot add new hardware items. The error I get is something like:
which I find odd, because in here:
it can be seen that
owner
is a member ofHardwareItemBase
which is the base class ofHardwareItem
.I'm afraid I don't know how to solve this. I compared it a lot to the section
relationship-attributes
in the docs, but the example there doesn't use the concept ofItemBase
,Item
,ItemRead
andItemCreate
(which are discussed in here for example).Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
3.11.2
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions