'Check whether the user has a complete verification attempt that is
or *might* be good. This means that it\'s approved, been submitted,
or would have been submitted but had an non-user error when it was
being submitted.
It\'s basically any situation in which the user has signed off on
the contents of the attempt, and we have not yet received a denial.
This will check for the user\'s *initial* verification.
Arguments:
user:
earliest_allowed_date: earliest allowed date given in the
settings
queryset: If a queryset is provided, that will be used instead
of hitting the database.
Returns:
queryset: queryset of \'PhotoVerification\' sorted by \'created_at\' in
descending order.'

@classmethod
def verification_valid_or_pending(cls, user, earliest_allowed_date=None, queryset=None):

    valid_statuses = ['submitted', 'approved', 'must_retry']
    if (queryset is None):
        queryset = cls.objects.filter(user=user)
    return queryset.filter(status__in=valid_statuses, created_at__gte=(earliest_allowed_date or cls._earliest_allowed_date())).order_by('-created_at')
