Fix format and PT style. Optimize OrderAdmin load.

This commit is contained in:
Reckless_Satoshi 2022-06-29 04:26:55 -07:00
parent 8b6a75ad80
commit eaa40417ad
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 12 additions and 3 deletions

View File

@ -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"]

View File

@ -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á!",

View File

@ -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"
}