@register.filter
def is_project_user(user, project):
 return (user in project.users.all())

@ register . filter def is_project_user ( user , project ) : return ( user in project . users . all ( ) )
return if user is a member of project .