Skip to content
Snippets Groups Projects
Commit 3d28e60a authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix: preserve basemap order based on ID

Ensure basemap order is consistent by explicitly ordering by ID.
Previously, updating a basemap in the Django admin moved it to the last position
in the frontend display. This fix maintains the original order after updates.
parent ffb33b6f
No related branches found
No related tags found
1 merge request!521REDMINE_ISSUE-25708 | Ordre des fonds de plan perdu à la modification d'une couche
Pipeline #37948 passed
......@@ -281,7 +281,7 @@ class BaseMapViewset(
if project_slug:
queryset = queryset.filter(project__slug=project_slug)
return queryset
return queryset.order_by('id')
@swagger_auto_schema(
tags=["base-maps"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment