feat: alphabetically order most models by default

#207
This commit is contained in:
Herculino Trotta
2025-03-09 18:55:29 -03:00
parent 187b3174d2
commit 73e8fdbf04
7 changed files with 70 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ def get_currency_exchange_map(date=None) -> Dict[str, dict]:
effective_rate=F("rate"),
)
.order_by("from_currency", "to_currency", "date_diff")
.distinct("from_currency", "to_currency")
.distinct()
)
# Initialize the result dictionary