Skip to content

Commit

Permalink
Merge pull request #110 from treviza153/bugfix/ChangeChannelApiCall
Browse files Browse the repository at this point in the history
Changing channel_id parameters
  • Loading branch information
treviza153 authored Sep 15, 2020
2 parents 4cd942d + 2612fa4 commit 3a5d97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CadVlan/EquipInterface/views_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,13 @@ def edit_channel_(request, channel_id=None):
@log
@login_required
@has_perm([{"permission": EQUIPMENT_MANAGEMENT, "write": True}])
def delete_channel(request, interface_id=None):
def delete_channel(request, channel_id=None):
auth = AuthSession(request.session)
client = auth.get_clientFactory()

try:
#client.create_api_interface_request().remove_channel([channel_id])
client.create_interface().delete_channel(interface_id)
client.create_interface().delete_channel(channel_id)
messages.add_message(request, messages.SUCCESS, equip_interface_messages.get(
"success_remove_channel"))
except ValueError as e:
Expand Down

0 comments on commit 3a5d97d

Please sign in to comment.