Skip to content

Has anyone managed to get the example report to work with 2.10.3? #5729

Answered by candlerb
willappleford asked this question in Q&A
Discussion options

You must be logged in to vote

connected_endpoint_reachable is an attribute in the REST API only. It's defined as:

    @swagger_serializer_method(serializer_or_field=serializers.BooleanField)
    def get_connected_endpoint_reachable(self, obj):
        if obj._path is not None:
            return obj._path.is_active
        return None

On the Django models, there is class PathEndpoint from which the other components inherit. It has:

    @property
    def path(self):
        return self._path

    @property
    def connected_endpoint(self):
        """
        Caching accessor for the attached CablePath's destination (if any)
        """
        if not hasattr(self, '_connected_endpoint'):
            self._connected_e…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@willappleford
Comment options

Answer selected by willappleford
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants