Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danjac committed Feb 2, 2021
1 parent f22f0eb commit 3a7c7ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/turbo_response/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Standard Library
from typing import Any, Dict
from typing import Any, Dict, Optional

# Django
from django.http import HttpRequest, HttpResponse
Expand Down Expand Up @@ -73,7 +73,7 @@ class TurboStreamDeleteView(TurboStreamResponseMixin, DeleteView):

turbo_stream_action = Action.REMOVE

def get_turbo_stream_target(self) -> str:
def get_turbo_stream_target(self) -> Optional[str]:
return f"{self.object._meta.model_name}-{self.object.pk}"

def delete(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
Expand Down

0 comments on commit 3a7c7ce

Please sign in to comment.