Skip to content

Commit

Permalink
Update list_per_page to 20 in UserProxyNodeOccupancyAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Jun 18, 2024
1 parent 725e931 commit 2756bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/proxy/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def link_addr(self, instance):
@admin.display(description="对接地址")
def api_endpoint(self, instance):
div = f"""
<input readonly class="el-input" value="{instance.api_endpoint}">
<input readonly class="el-input" value="bash <(curl -fsSL https://get.ehco-relay.cc) -i --config '{instance.api_endpoint}'">
"""
return mark_safe(div)

Expand Down Expand Up @@ -334,7 +334,7 @@ def queryset(self, request, queryset):
]
search_fields = ["user__username"]
list_filter = ["proxy_node", "user", StatusFilter]
list_per_page = 10
list_per_page = 20
show_full_result_count = False
autocomplete_fields = ["user", "proxy_node"]

Expand Down

0 comments on commit 2756bd2

Please sign in to comment.