conf_site/reviews/templatetags/review_tags.py
def is_reviewer(user):
    """Determine whether selected user is in the Reviewers user group."""
    try:
        reviewers_group = Group.objects.get(name="Reviewers")
    except Group.DoesNotExist:
        return False
    return True if reviewers_group in user.groups.all() else False
Determine whether selected user is in the Reviewers user group.
Determine whether selected user is in the Reviewers user group.
Determine whether selected user is in the Reviewers user group .
def is_reviewer(user):
    try:
        reviewers_group = Group.objects.get(name="Reviewers")
    except Group.DoesNotExist:
        return False
    return True if reviewers_group in user.groups.all() else False
def is_reviewer ( user ) : try : reviewers_group = Group . objects . get ( name = "Reviewers" ) except Group . DoesNotExist : return False return True if reviewers_group in user . groups . all ( ) else False
Determine whether selected user is in the Reviewers user group.
Determine whether selected user is in the Reviewers user group .
"""Determine whether selected user is in the Reviewers user group."""
user