refactor: order management lists by name instead of id

This commit is contained in:
Herculino Trotta
2025-12-27 23:43:57 -03:00
parent c7ff6db0bf
commit 2076903740
7 changed files with 10 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ def strategy_index(request):
@only_htmx
@login_required
def strategy_list(request):
strategies = DCAStrategy.objects.all().order_by("created_at")
strategies = DCAStrategy.objects.all().order_by("name")
return render(
request, "dca/fragments/strategy/list.html", {"strategies": strategies}
)