From 396359ceff2faf0f74eabaf8702455b4da21ffab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 28 Mar 2022 00:59:53 +0000 Subject: [PATCH] message to future me --- api/kiwi_vpn_api/db_new/device.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/kiwi_vpn_api/db_new/device.py b/api/kiwi_vpn_api/db_new/device.py index 1357ab3..f260cbc 100644 --- a/api/kiwi_vpn_api/db_new/device.py +++ b/api/kiwi_vpn_api/db_new/device.py @@ -31,6 +31,8 @@ class Device(DeviceBase, table=True): id: int | None = Field(primary_key=True) owner_name: str | None = Field(foreign_key="user.name") + # no idea, but "User" (in quotes) doesn't work here + # might be a future problem? owner: User = Relationship( back_populates="devices", )