Kaynağa Gözat

email field is mandatory - set default. fix typo

Neil Beadle 5 yıl önce
ebeveyn
işleme
6ccde2d0da

+ 1 - 1
vycontrol/accounts/views.py

@@ -28,7 +28,7 @@ def index(request):
             return redirect('registration-login')
     else:
         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()
             return redirect('%s?next=%s' % (reverse('registration-login'), '/config/instance-add'))
     template = loader.get_template('registration/start.html')

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

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