diff --git a/api/kiwi_vpn_api/db/models.py b/api/kiwi_vpn_api/db/models.py index 06200ba..1097400 100644 --- a/api/kiwi_vpn_api/db/models.py +++ b/api/kiwi_vpn_api/db/models.py @@ -57,7 +57,7 @@ class Device(ORMBaseModel): expiry = Column(DateTime) owner: User = relationship( - "User", lazy="joined", back_populates="distinguished_names" + "User", lazy="joined", back_populates="devices" ) UniqueConstraint(