Skip to content

Commit

Permalink
[Fix] Sort map layers by order instead of label (fix: Georiviere-publ…
Browse files Browse the repository at this point in the history
…ic#53)
  • Loading branch information
babastienne committed Apr 30, 2024
1 parent df74a3a commit 50ceb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion georiviere/portal/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MapBaseLayer(models.Model):
class Meta:
verbose_name = _("Map base layer")
verbose_name_plural = _("Map base layers")
ordering = ('label',)
ordering = ('order',)
unique_together = ('label', 'portal')

def __str__(self):
Expand Down

0 comments on commit 50ceb95

Please sign in to comment.