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)