From eaa40417ade121100bc636407b9a8e33990954d7 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Wed, 29 Jun 2022 04:26:55 -0700 Subject: [PATCH] Fix format and PT style. Optimize OrderAdmin load. --- api/admin.py | 9 +++++++++ frontend/src/locales/pt.json | 2 +- frontend/static/assets/currencies.json | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/api/admin.py b/api/admin.py index d8571828..8e97b8b5 100644 --- a/api/admin.py +++ b/api/admin.py @@ -70,6 +70,15 @@ class OrderAdmin(AdminChangeLinksMixin, admin.ModelAdmin): "taker_bond", "trade_escrow", ) + raw_id_fields = ( + "maker", + "taker", + "payout_tx", + "payout", + "maker_bond", + "taker_bond", + "trade_escrow", + ) list_filter = ("is_disputed", "is_fiat_sent", "is_swap","type", "currency", "status") search_fields = ["id","amount","min_amount","max_amount"] diff --git a/frontend/src/locales/pt.json b/frontend/src/locales/pt.json index 1a7de6bf..6267eb80 100644 --- a/frontend/src/locales/pt.json +++ b/frontend/src/locales/pt.json @@ -15,7 +15,7 @@ "You must enter a new token first": "Primeiramente você necessita inserir um novo token", "Make Order": "Lançar ordem", "Info": "Info", - "View Book": "Ver livro de ofertas", + "View Book": "Ver ofertas", "Learn RoboSats": "Aprender sobre o RoboSats", "You are about to visit Learn RoboSats. It hosts tutorials and documentation to help you learn how to use RoboSats and understand how it works.": "Você está prestes a visitar o \"Learn RoboSats\"(Aprender sobre o RoboSats). Ele hospeda tutoriais e documentação para ajudá-lo a aprender como usar o RoboSats e entender como funciona.", "Let's go!": "Vamos lá!", diff --git a/frontend/static/assets/currencies.json b/frontend/static/assets/currencies.json index 54df29b4..442d21d7 100644 --- a/frontend/static/assets/currencies.json +++ b/frontend/static/assets/currencies.json @@ -59,7 +59,7 @@ "58":"TTD", "59":"VND", "60":"XOF", - "61":"TWD", + "61":"TWD", "62":"TZS", "63":"XAF", "64":"UAH", @@ -67,7 +67,7 @@ "66":"LKR", "67":"MAD", "68":"AED", - "69":"TND", + "69":"TND", "300":"XAU", "1000":"BTC" }