'Get initial verification for a user with the \'photo_id_key\'.
Arguments:
user(User): user object
earliest_allowed_date(datetime): override expiration date for initial verification
Return:
SoftwareSecurePhotoVerification (object) or None'

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

    init_verification = cls.objects.filter(user=user, status__in=['submitted', 'approved'], created_at__gte=(earliest_allowed_date or cls._earliest_allowed_date())).exclude(photo_id_key='')
    return (init_verification.latest('created_at') if init_verification.exists() else None)
