Users tags
hypha.apply.users.templatetags.users_tags
¶
backend_name
¶
Human readable mapping for the social auth backend
Source code in hypha/apply/users/templatetags/users_tags.py
backend_class
¶
can_use_oauth
¶
user_2fa_enabled
¶
tokens_text
¶
user_image
¶
get_user_submission_count
¶
Get the number of submissions associated to either one user or a list of users
Also handles Wagtail's user deletion view where a list of dicts containing {"item":
Parameters:
-
user(User | Iterable[User | Dict[Literal['item'], User]]) –A user object OR an iterable containing either User objects/dictionaries of {"item":
}
Returns:
-
int–Count of all submissions associated to the user(s)
Raises:
-
TypeError–when none of the previously specified types are provided in
user