<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def related_objects(self, related, objs):
 """ Gets a QuerySet of current objects related to ``objs`` via the relation ``related``. """

        from versions.models import Versionable

        related_model = related.related_model
        if issubclass(related_model, Versionable):
            qs = related_model.objects.current
        else:
            qs = related_model._base_manager.all()
        return qs.using(self.using).filter(
            **{"%s__in" % related.field.name: objs}
        )