def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def index(self, request):
        queryset = Condition.objects.select_related('source', 'target_option')
        serializer = ConditionIndexSerializer(queryset, many=True)
        return Response(serializer.data)