We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f22f0eb commit 3a7c7ceCopy full SHA for 3a7c7ce
src/turbo_response/views.py
@@ -1,5 +1,5 @@
1
# Standard Library
2
-from typing import Any, Dict
+from typing import Any, Dict, Optional
3
4
# Django
5
from django.http import HttpRequest, HttpResponse
@@ -73,7 +73,7 @@ class TurboStreamDeleteView(TurboStreamResponseMixin, DeleteView):
73
74
turbo_stream_action = Action.REMOVE
75
76
- def get_turbo_stream_target(self) -> str:
+ def get_turbo_stream_target(self) -> Optional[str]:
77
return f"{self.object._meta.model_name}-{self.object.pk}"
78
79
def delete(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
0 commit comments