upgrade to django3.2

This commit is contained in:
cmile 2022-05-25 23:38:10 +02:00
parent 191eed1aa4
commit 4bd1b62e64
7 changed files with 29 additions and 26 deletions

View file

@ -14,7 +14,7 @@ from django.contrib.auth.models import User
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.shortcuts import render
from django.utils.translation import ugettext as _
import smbpasswd
@ -123,7 +123,7 @@ def groups_list(request, group_name):
is_ceymaster = True
if 'ldap_admins' in [g.name for g in request.user.groups.all()]:
is_admin = True
return render_to_response("group_list.html", locals())
return render(request, "group_list.html", locals())
@login_required