Browse Source

bump djangorestframework e django_filter

pull/3445/head
Leandro Roberto 3 years ago
parent
commit
b7d41accd1
  1. 4
      requirements/requirements.txt
  2. 1
      sapl/api/views_customize.py

4
requirements/requirements.txt

@ -1,7 +1,7 @@
django==2.2.24 django==2.2.24
django-haystack==2.8.1 django-haystack==2.8.1
django-filter==2.0.0 django-filter==2.4.0
djangorestframework==3.11.2 djangorestframework==3.12.4
dj-database-url==0.5.0 dj-database-url==0.5.0
django-braces==1.14.0 django-braces==1.14.0
django-crispy-forms==1.7.2 django-crispy-forms==1.7.2

1
sapl/api/views_customize.py

@ -91,6 +91,7 @@ class _AutorViewSet:
func.mapping['get'] = func.kwargs['name'] func.mapping['get'] = func.kwargs['name']
func.url_name = func.kwargs['name'] func.url_name = func.kwargs['name']
func.url_path = func.kwargs['name'] func.url_path = func.kwargs['name']
func.__name__ = func.kwargs['name']
func.__model = _model func.__model = _model
setattr(cls, _model._meta.model_name, func) setattr(cls, _model._meta.model_name, func)

Loading…
Cancel
Save