From a66a14a63e286cdc16523f821107097717e5ee5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 23 Dec 2019 10:49:26 +0100 Subject: [PATCH] fix small error for django 3.0 --- server/src/uds/core/auths/auth.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/src/uds/core/auths/auth.py b/server/src/uds/core/auths/auth.py index deddce2a..f2ac37c3 100644 --- a/server/src/uds/core/auths/auth.py +++ b/server/src/uds/core/auths/auth.py @@ -39,7 +39,6 @@ import typing from functools import wraps from django.http import HttpResponseRedirect, HttpResponseForbidden, HttpResponse, HttpRequest from django.utils.translation import get_language -from django.utils.decorators import available_attrs from django.urls import reverse from django.utils.translation import ugettext as _ @@ -108,7 +107,6 @@ def webLoginRequired(admin: typing.Union[bool, str] = False) -> typing.Callable[ if admin == 'admin', needs admin """ def decorator(view_func: typing.Callable[..., RT]) -> typing.Callable[..., RT]: - @wraps(view_func, assigned=available_attrs(view_func)) def _wrapped_view(request: HttpRequest, *args, **kwargs) -> RT: """ Wrapped function for decorator