Fix call to NetworkForm, fixing #9
This commit is contained in:
parent
683c509391
commit
2492daf280
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ def makewifi(request):
|
|||
@user_passes_test(is_superuser)
|
||||
def makenetwork(request):
|
||||
if request.method == "POST":
|
||||
form = NetworkForm(request.POST)
|
||||
form = NetworkForm(request.user, request.POST)
|
||||
if form.is_valid():
|
||||
data = form.cleaned_data
|
||||
network = Network.objects.create(name=data["name"], intip=data["intip"], extip=data["extip"])
|
||||
|
|
Loading…
Reference in a new issue