This decouples a order model more from a user
@ -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
def role_principals(self):