Fix call to NetworkForm, fixing #9

This commit is contained in:
Kumi 2019-02-19 14:08:43 +00:00
parent 683c509391
commit 2492daf280

View file

@ -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"])