From 3a7c7ce7ce52bb65718b53b275f0f416b31ff86e Mon Sep 17 00:00:00 2001 From: Dan Jacob Date: Tue, 2 Feb 2021 20:59:09 +0200 Subject: [PATCH] Test fixes --- src/turbo_response/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/turbo_response/views.py b/src/turbo_response/views.py index f38dc07..fb93d5b 100644 --- a/src/turbo_response/views.py +++ b/src/turbo_response/views.py @@ -1,5 +1,5 @@ # Standard Library -from typing import Any, Dict +from typing import Any, Dict, Optional # Django from django.http import HttpRequest, HttpResponse @@ -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: