You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it can be seen that owner is a member of HardwareItemBase which is the base class of HardwareItem.
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 of ItemBase, Item, ItemRead and ItemCreate (which are discussed in here for example).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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