From 0c9d99e9c48ea782dd9c7e80ac156fd62b74f79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20G=C3=B6kmen?= <1408354+cgokmen@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:19:46 -0800 Subject: [PATCH] Small ORM fix --- bddl/knowledge_base/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bddl/knowledge_base/orm.py b/bddl/knowledge_base/orm.py index c286f680..8d79d42a 100644 --- a/bddl/knowledge_base/orm.py +++ b/bddl/knowledge_base/orm.py @@ -127,7 +127,7 @@ def __lt__(self, other): if hasattr(self.Meta, "ordering"): order_attrs = self.Meta.ordering else: - order_attrs = self._key + order_attrs = [self.Meta.pk] self_order_key = [getattr(self, attr) for attr in order_attrs] other_order_key = [getattr(other, attr) for attr in order_attrs] return self_order_key < other_order_key