From b7d41accd1821bee95b583becec52ebbbee6df4d Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Thu, 2 Sep 2021 18:33:06 -0300 Subject: [PATCH] bump djangorestframework e django_filter --- requirements/requirements.txt | 4 ++-- sapl/api/views_customize.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements/requirements.txt b/requirements/requirements.txt index bcfa70e1b..e3405ce13 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,7 +1,7 @@ django==2.2.24 django-haystack==2.8.1 -django-filter==2.0.0 -djangorestframework==3.11.2 +django-filter==2.4.0 +djangorestframework==3.12.4 dj-database-url==0.5.0 django-braces==1.14.0 django-crispy-forms==1.7.2 diff --git a/sapl/api/views_customize.py b/sapl/api/views_customize.py index e8546ed05..8336fdffe 100644 --- a/sapl/api/views_customize.py +++ b/sapl/api/views_customize.py @@ -91,6 +91,7 @@ class _AutorViewSet: func.mapping['get'] = func.kwargs['name'] func.url_name = func.kwargs['name'] func.url_path = func.kwargs['name'] + func.__name__ = func.kwargs['name'] func.__model = _model setattr(cls, _model._meta.model_name, func)