From 3ede41c0f4249844630f38fd31692e9194cab5a6 Mon Sep 17 00:00:00 2001 From: alice Date: Thu, 3 Sep 2020 23:15:21 +0200 Subject: [PATCH] fix push_user being called with VPNUser id --- lambdainst/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambdainst/models.py b/lambdainst/models.py index 179ef90..e8c5b27 100644 --- a/lambdainst/models.py +++ b/lambdainst/models.py @@ -90,7 +90,7 @@ class VPNUser(models.Model, LcoreUserProfileMethods): if VPN_AUTH_STORAGE == 'inst': return from lambdainst.tasks import push_user - push_user.delay(user_id=self.id) + push_user.delay(user_id=self.user.id) def __str__(self): return self.user.username