8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-04 17:06:27 +00:00

Fix typo in view edit_switch

This commit is contained in:
Hugo Levy-Falk 2019-10-31 21:54:25 +01:00
parent b5000ad367
commit 804d5a711b

View file

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