0.12.8 switch off push for static pages

This commit is contained in:
SDE
2024-01-26 18:26:37 +03:00
parent de229c5f78
commit 961c0dd2a5

View File

@@ -39,7 +39,7 @@ def get_inter_http_respose(template_obj, context_Dict, request):
title = getattr(context_Dict['page'], 'title', None)
text = getattr(context_Dict['page'], 'description', None)
if text and title and not request.user.is_anonymous:
send_push(user=request.user, title=title, text=text)
# if text and title and not request.user.is_anonymous:
# send_push(user=request.user, title=title, text=text)
return HttpResponse(template_obj.render(context_Dict, request))