1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-22 18:44:49 +00:00

Added accounts test(moved from admin)

Actuall added admin tests
This commit is contained in:
Real-Gecko 2020-05-29 15:47:13 +06:00 committed by catborise
parent f46a14219c
commit ad51747697
2 changed files with 1 additions and 2 deletions

View file

@ -1,4 +1,3 @@
from django.contrib.auth.decorators import user_passes_test
from django.contrib.auth.models import Group, User
from django.core.paginator import Paginator
from django.shortcuts import get_object_or_404, redirect, render
@ -30,6 +29,7 @@ def group_create(request):
if form.is_valid():
form.save()
return redirect('admin:group_list')
return render(
request,
'admin/common/form.html',