@library.global_function
def group_avatar(group_profile):
 if group_profile.avatar:
  return group_profile.avatar.url
 else:
  return (settings.STATIC_URL + settings.DEFAULT_AVATAR)

@ library . global_function def group_avatar ( group_profile ) : if group_profile . avatar : return group_profile . avatar . url else : return ( settings . STATIC_URL + settings . DEFAULT_AVATAR )
return a url to the groups avatar .