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 | 140 | |
141 | 141 | |
142 | 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 | 143 | class LogViewSet(viewsets.ModelViewSet): |
153 | 144 | permission_classes = [permissions.IsAuthenticated] |
154 | 145 | queryset = Log.objects.all() | ... | ... |