Skip to content

Commit 444718c

Browse files
committed
Mend for pagination issue - ordering
1 parent 33e7060 commit 444718c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class Event(models.Model):
605605
)
606606

607607
class Meta:
608-
ordering = ('-disaster_start_date',)
608+
ordering = ('-disaster_start_date', 'id',)
609609
verbose_name = _('emergency')
610610
verbose_name_plural = _('emergencies')
611611

deployments/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def __str__(self):
210210
return '%s: %s - %s' % (self.type.upper(), self.name, self.role)
211211

212212
class Meta:
213+
ordering = ('deployment', 'country_to', 'country_from', 'molnix_id', 'deployedperson_ptr_id',)
213214
verbose_name = _('Personnel')
214215
verbose_name_plural = _('Personnels')
215216

0 commit comments

Comments
 (0)