diff --git a/GeneralApp/funcs.py b/GeneralApp/funcs.py index d4370b4..2169cd2 100644 --- a/GeneralApp/funcs.py +++ b/GeneralApp/funcs.py @@ -69,7 +69,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)) \ No newline at end of file diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index 57a9b6d..4dd0e2e 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -1,5 +1,7 @@ {% load i18n %} {% load base_tags_extra %} +{% load webpush_notifications %} +