Add display name (first_name) shown instead of username on user-facing UI
All checks were successful
Docker / build (release) Successful in 8s
All checks were successful
Docker / build (release) Successful in 8s
This commit is contained in:
parent
28f279a4ab
commit
b57f9092aa
5 changed files with 21 additions and 3 deletions
|
|
@ -290,6 +290,7 @@ ACCOUNT_EMAIL_VERIFICATION = config("EMAIL_VERIFICATION", default="mandatory")
|
|||
ACCOUNT_AUTHENTICATION_METHOD = "username_email"
|
||||
# ACCOUNT_LOGIN_METHODS = {'username', 'email'}
|
||||
ACCOUNT_FORMS = {"signup": "photo21.forms.CustomSignupForm"}
|
||||
ACCOUNT_USER_DISPLAY = lambda user: user.first_name or user.username
|
||||
|
||||
if OAUTH_ENABLED:
|
||||
SOCIALACCOUNT_ONLY = OAUTH_ONLY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue