<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connections_from_object(self, from_obj):
 """ Returns a ``Connection`` query set matching all connections with the given object as a source. """

        self._validate_ctypes(from_obj, None)
        return self.connections.filter(from_pk=from_obj.pk)