mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 14:59:36 +02:00
feat: implement global search functionality for adventures, collections, users, and locations
This commit is contained in:
parent
9132ef39ec
commit
d60945d5b7
10 changed files with 186 additions and 209 deletions
|
@ -11,10 +11,6 @@ class AdventureImageViewSet(viewsets.ModelViewSet):
|
|||
serializer_class = AdventureImageSerializer
|
||||
permission_classes = [IsAuthenticated]
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
print(f"Method: {request.method}")
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
|
||||
@action(detail=True, methods=['post'])
|
||||
def image_delete(self, request, *args, **kwargs):
|
||||
return self.destroy(request, *args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue