Skip to content

Commit

Permalink
*: remove RelayRule admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Oct 6, 2023
1 parent 27a5907 commit 85ab6f6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions apps/proxy/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,21 +144,6 @@ def api_endpoint(self, instance):
return mark_safe(div)


class RelayRuleAdmin(admin.ModelAdmin):
list_display = [
"rule_name",
"proxy_node",
"relay_node",
"relay_host",
"relay_port",
"remark",
"enable",
]
search_fields = []
list_filter = ["relay_node", "proxy_node"]
inlines = []


class UserTrafficLogAdmin(admin.ModelAdmin):
list_display = [
"username",
Expand Down Expand Up @@ -189,6 +174,4 @@ def total_traffic(self, instance):
# Register your models here.
admin.site.register(models.ProxyNode, ProxyNodeAdmin)
admin.site.register(models.RelayNode, RelayNodeAdmin)
admin.site.register(models.RelayRule, RelayRuleAdmin)

admin.site.register(models.UserTrafficLog, UserTrafficLogAdmin)

0 comments on commit 85ab6f6

Please sign in to comment.