(self)
return query
Return valid user queryset, filtering new and trusted users.
Return valid user queryset, filtering new and trusted users.
Return valid user queryset filtering new and trusted users .
def valid_users(self):
        """
        Return valid user queryset, filtering new and trusted users.
        """

        # Filter for new or trusted users.
        query = super().get_queryset().filter(models.Q(state=Profile.TRUSTED) | models.Q(state=Profile.NEW))

        return query
def valid_users ( self ) : # Filter for new or trusted users. query = super ( ) . get_queryset ( ) . filter ( models . Q ( state = Profile . TRUSTED ) | models . Q ( state = Profile . NEW ) ) return query