Fix ill-typed query ordering

This commit is contained in:
Martin Pépin 2020-09-11 20:33:43 +02:00
parent 4247730ce4
commit 8d3805a922
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -34,7 +34,7 @@ class Partition(models.Model):
class Meta:
verbose_name = _('Morceau')
verbose_name_plural = _('Morceaux')
ordering = ('-'+Lower('nom'),)
ordering = (Lower('nom'),)
class PartitionSet(models.Model):
@ -54,4 +54,4 @@ class PartitionSet(models.Model):
class Meta:
verbose_name = _('Morceau')
verbose_name_plural = _('Morceaux')
ordering = ('-'+Lower('nom'),)
ordering = (Lower('nom'),)