Skip to content

Commit

Permalink
Small ORM fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Nov 15, 2023
1 parent da6e407 commit 0c9d99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bddl/knowledge_base/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c9d99e

Please sign in to comment.