Implement adding relays by number

This commit is contained in:
2022-07-29 17:28:41 +01:00
parent dc293b0dbc
commit 0457cfbbed
6 changed files with 124 additions and 36 deletions

View File

@@ -24,6 +24,9 @@ from core.api.views.threshold import ThresholdChans, ThresholdOnline, ThresholdU
from core.views import Billing, Cancel, Home, Order, Portal, Signup
from core.views.callbacks import Callback
from core.views.manage.threshold.irc import (
ThresholdIRCAliases,
ThresholdIRCNetworkActions,
ThresholdIRCNetworkActionsAddRelay,
ThresholdIRCNetworkChannels,
ThresholdIRCNetworkInfo,
ThresholdIRCNetworkInfoEdit,
@@ -31,8 +34,6 @@ from core.views.manage.threshold.irc import (
ThresholdIRCNetworkRelayStatus,
ThresholdIRCNetworks,
ThresholdIRCStats,
ThresholdIRCAliases,
ThresholdIRCNetworkActions,
)
# Management stuff
@@ -153,6 +154,11 @@ urlpatterns = [
ThresholdIRCNetworkActions.as_view(),
name="threshold_irc_network_actions",
),
path(
"manage/threshold/irc/network/actions/<str:net>/",
ThresholdIRCNetworkActionsAddRelay.as_view(),
name="threshold_irc_network_actions_add_relay",
),
##
path("api/chans/", ThresholdChans.as_view(), name="chans"),
path("api/users/", ThresholdUsers.as_view(), name="users"),