Skip to content

Commit

Permalink
Comment out broken ordering logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Jan 8, 2025
1 parent 99bde0b commit ba10841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bddl/knowledge_base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ class RoomSynsetRequirement(Model):
class Meta:
pk = "id"
unique_together = ("room_requirement", "synset")
ordering = ["synset__name"]
ordering = ["id"] # TODO: synset__name when implemented


@dataclass(eq=False, order=False)
Expand Down Expand Up @@ -912,7 +912,7 @@ class RoomObject(Model):
class Meta:
pk = "id"
unique_together = ("room", "object")
ordering = ["room__name", "object__name"]
ordering = ["id"] # TODO: ["room__name", "object__name"] when implemented

def __str__(self):
return f"{str(self.room)}_{self.object.name}"

0 comments on commit ba10841

Please sign in to comment.