Commit 94f73b068e42e259caae7ce2b427745bf3f109ee
1 parent
99c120fd
Exists in
master
and in
5 other branches
added url available for LogViewSet
Showing
1 changed file
with
0 additions
and
9 deletions
Show diff stats
core/views.py
| @@ -140,15 +140,6 @@ class GuestView (ListView): | @@ -140,15 +140,6 @@ class GuestView (ListView): | ||
| 140 | 140 | ||
| 141 | 141 | ||
| 142 | #REST API VIEWS | 142 | #REST API VIEWS |
| 143 | -@login_required | ||
| 144 | -@api_view(['GET']) | ||
| 145 | -def get_log(request): | ||
| 146 | - if request.method == 'GET': | ||
| 147 | - logs = Log.objects.all() | ||
| 148 | - serializer = LogSerializer(logs, many=True) | ||
| 149 | - return Response(serializer.data) | ||
| 150 | - | ||
| 151 | - | ||
| 152 | class LogViewSet(viewsets.ModelViewSet): | 143 | class LogViewSet(viewsets.ModelViewSet): |
| 153 | permission_classes = [permissions.IsAuthenticated] | 144 | permission_classes = [permissions.IsAuthenticated] |
| 154 | queryset = Log.objects.all() | 145 | queryset = Log.objects.all() |