mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +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:
commit
c260d3889e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue