summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <ar@bash.org.pl>2020-03-07 08:54:42 +0100
committerRobert Gerus <ar@bash.org.pl>2020-03-07 08:54:42 +0100
commit6f26c25c03e8d0c46461bb65ef7c7553a66de9a6 (patch)
tree43ce69847a16bbafda4b0b0e9407d5551e9eaf0e
parent4615d3a41751ec0f82502084cd0769221460c28f (diff)
downloadspejstore-6f26c25c03e8d0c46461bb65ef7c7553a66de9a6.tar.gz
spejstore-6f26c25c03e8d0c46461bb65ef7c7553a66de9a6.tar.bz2
spejstore-6f26c25c03e8d0c46461bb65ef7c7553a66de9a6.zip
Update dependencies
As far as i can see, the only breaking change is the change from @detail_route to @action(detail=True) decorator in rest_framework.decorators. (famous last words)
-rw-r--r--requirements.txt22
-rw-r--r--storage/apiviews.py12
2 files changed, 17 insertions, 17 deletions
diff --git a/requirements.txt b/requirements.txt
index 8f673f2..b8ddc3f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,16 +1,16 @@
-certifi==2017.4.17
-chardet==3.0.3
-Django==1.11.15
+certifi==2019.11.28
+chardet==3.0.4
+Django==1.11.28
git+https://github.com/djangonauts/django-hstore@61427e474cb2f4be8fdfce225d78a5330bc77eb0#egg=django-hstore
git+https://github.com/d42/django-tree@687c01c02d91cada9ca1912e34e482da9e73e27a#egg=django-tree
-django-appconf==1.0.2
+django-appconf==1.0.3
django-flat-responsive==2.0
-social-auth-app-django==2.1.0
+social-auth-app-django==3.1.0
Django-Select2==6.3.1
-djangorestframework==3.5.4
-Pillow==3.3.1
-psycopg2==2.7.5
+djangorestframework==3.11.0
+Pillow==6.2.1
+psycopg2==2.8.4
djangorestframework-hstore==1.3
-requests==2.16.5
-urllib3==1.21.1
-django_markdown2==0.3.0
+requests==2.22.0
+urllib3==1.25.8
+django_markdown2==0.3.1
diff --git a/storage/apiviews.py b/storage/apiviews.py
index a043542..4a2deea 100644
--- a/storage/apiviews.py
+++ b/storage/apiviews.py
@@ -1,6 +1,6 @@
from rest_framework import viewsets, generics, filters
from rest_framework.response import Response
-from rest_framework.decorators import detail_route
+from rest_framework.decorators import action
from rest_framework.permissions import AllowAny
from storage.models import Item, Label
@@ -30,7 +30,7 @@ class LabelViewSet(viewsets.ModelViewSet):
queryset = Label.objects
serializer_class = LabelSerializer
- @detail_route(methods=['post'], permission_classes=[AllowAny])
+ @action(detail=True,methods=['post'], permission_classes=[AllowAny])
def print(self, request, pk):
obj = self.get_object()
obj.print()
@@ -58,22 +58,22 @@ class ItemViewSet(viewsets.ModelViewSet):
return obj
- @detail_route()
+ @action(detail=True)
def children(self, request, pk):
item = self.get_object()
return Response(self.serializer_class(item.get_children().all(), many=True).data)
- @detail_route()
+ @action(detail=True)
def ancestors(self, request, pk):
item = self.get_object()
return Response(self.serializer_class(item.get_ancestors().all(), many=True).data)
- @detail_route()
+ @action(detail=True)
def descendants(self, request, pk):
item = self.get_object()
return Response(self.serializer_class(item.get_descendants().all(), many=True).data)
- @detail_route()
+ @action(detail=True)
def siblings(self, request, pk):
item = self.get_object()
return Response(self.serializer_class(item.get_siblings().all(), many=True).data)