浏览代码

email field is mandatory - set default. fix typo

Neil Beadle 5 年之前
父节点
当前提交
6ccde2d0da
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      vycontrol/accounts/views.py
  2. 1 1
      vycontrol/firewall/templates/firewall/list.html

+ 1 - 1
vycontrol/accounts/views.py

@@ -28,7 +28,7 @@ def index(request):
             return redirect('registration-login')
             return redirect('registration-login')
     else:
     else:
         if 'username' in request.POST and 'password' in request.POST:
         if 'username' in request.POST and 'password' in request.POST:
-            user = User.objects.create_superuser(username=request.POST['username'], password=request.POST['password'])
+            user = User.objects.create_superuser(username=request.POST['username'], email='', password=request.POST['password'])
             user.save()
             user.save()
             return redirect('%s?next=%s' % (reverse('registration-login'), '/config/instance-add'))
             return redirect('%s?next=%s' % (reverse('registration-login'), '/config/instance-add'))
     template = loader.get_template('registration/start.html')
     template = loader.get_template('registration/start.html')

+ 1 - 1
vycontrol/firewall/templates/firewall/list.html

@@ -28,7 +28,7 @@
     <tr>
     <tr>
         <th>name</th>
         <th>name</th>
         <th>description</th>
         <th>description</th>
-        <th>default-acton</th>
+        <th>default-action</th>
         <th>actions</th>
         <th>actions</th>
     </tr>
     </tr>