app.models.user.User.calc_username
- User.calc_username() str
Come up with the best ‘username’ based on how the app is configured (via
SECURITY_USER_IDENTITY_ATTRIBUTES
). Returns the first non-null match (and converts to string). In theory this should NEVER be the empty string unless the user record isn’t actually valid.New in version 3.4.0.