From 2add325e5aa6a5ab8ed4e4b0e9bcfbf9e0fed0e5 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 3 Oct 2017 09:31:48 +0200 Subject: [PATCH] changed user principal from id to username This decouples a order model more from a user --- ordr2/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ordr2/models/user.py b/ordr2/models/user.py index 8c25394..1f29d7b 100644 --- a/ordr2/models/user.py +++ b/ordr2/models/user.py @@ -47,7 +47,7 @@ class User(Base): @property def principal(self): ''' returns the principal identifier for the user ''' - return 'user:' + str(self.id) + return 'user:' + self.user_name @property def role_principals(self):