def render_tag(self, context, runcaseversion, user, environment, varname):
        """Get/construct Result and place it in context under ``varname``"""

        # check for any completed result states from other users for this
        # same case/env combo.
        include_kwargs = dict(
            environment=environment,
            runcaseversion=runcaseversion,
            is_latest=True,
            status__in=(model.Result.COMPLETED_STATES +
                [model.Result.STATUS.skipped]),
            )
        exclude_kwargs = dict(
            tester=user,
            )

        try:
            result = model.Result.objects.only(
                "id",
                "status",
                "tester",
                "comment",
                ).filter(
                    **include_kwargs).exclude(**exclude_kwargs).order_by(
                    "-modified_on")[0]
        except __HOLE__:
            result = None


        context[varname] = result
        return u""
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/runtests/templatetags/execution.py/OtherResultFor.render_tag