mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-20 13:01:56 +00:00
Add clarifying comment to the change_user_perm line
This commit is contained in:
parent
f309696ab7
commit
325b61f212
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ from wagtail.wagtailcore.compat import AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME
|
|||
|
||||
User = get_user_model()
|
||||
|
||||
# Typically we would check the permission 'auth.change_user' for user
|
||||
# management actions, but this may vary according to the AUTH_USER_MODEL
|
||||
# setting
|
||||
change_user_perm = "{0}.change_{1}".format(AUTH_USER_APP_LABEL, AUTH_USER_MODEL_NAME.lower())
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue