8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Merge branch 'fix-edit-switch' into 'dev'

Fix typo in view edit_switch

See merge request federez/re2o!466
This commit is contained in:
chirac 2019-11-03 19:54:58 +01:00
commit c260d3889e

View file

@ -616,7 +616,7 @@ def edit_switch(request, switch, switchid):
domain_form = DomainForm( domain_form = DomainForm(
request.POST or None, request.POST or None,
instance=switch.interface_set.first().domain, instance=switch.interface_set.first().domain,
domain=request.user user=request.user
) )
if switch_form.is_valid() and interface_form.is_valid(): if switch_form.is_valid() and interface_form.is_valid():
new_switch_obj = switch_form.save(commit=False) new_switch_obj = switch_form.save(commit=False)