Skip to content

Commit

Permalink
[fix] AttributeError (Resolves issues fanout#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alireza2n committed Dec 12, 2024
1 parent 93b3f4f commit 06216e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_eventstream/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _accepted_format(self, request, format_list):
return any(fmt in accept_header or fmt in query_format for fmt in format_list)

def _stream_or_respond(self, channels, django_request):
request = django_request._request
request = django_request._request if hasattr(django_request, "_request") else django_request
messages_types = self.messages_types if self.messages_types else ["message"]
data = {
"channels": ", ".join(channels),
Expand Down

0 comments on commit 06216e0

Please sign in to comment.