Skip to content

Commit 96d62b8

Browse files
committed
Fixed a problem with paging of api lists, which requires that the ordering keys define a fully deterministic ordering (i.e., there may be no entries with the same sort position in order to make the api paging work). (The admin interface's paging does not seem to have this problem.) Fixes issue ietf-tools#1930.
- Legacy-Id: 10957
1 parent 15ef1af commit 96d62b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/meeting/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def updated(self):
282282
return ts
283283

284284
class Meta:
285-
ordering = ["-date", ]
285+
ordering = ["-date", "id"]
286286

287287
class ResourceAssociation(models.Model):
288288
name = models.ForeignKey(RoomResourceName)
@@ -519,7 +519,7 @@ def slot_to_the_right(self):
519519
time__lt = self.time + self.duration + datetime.timedelta(seconds=11*60)).first()
520520

521521
class Meta:
522-
ordering = ["-time", ]
522+
ordering = ["-time", "id"]
523523

524524

525525
# end of TimeSlot

0 commit comments

Comments
 (0)