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:
parent
f46a14219c
commit
ad51747697
2 changed files with 1 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue