Change list_action detail_action decorators to action to solve DeprecationWarning
Compare changes
Files
5+ 5
− 5
@@ -2,8 +2,9 @@
@@ -14,7 +15,6 @@ from rest_framework.permissions import (
@@ -89,7 +89,7 @@ class EventViewset(viewsets.ReadOnlyModelViewSet):
@@ -137,7 +137,7 @@ class EventViewset(viewsets.ReadOnlyModelViewSet):
@@ -158,7 +158,7 @@ class EventViewset(viewsets.ReadOnlyModelViewSet):