notifications.views module

notifications.views.is_test_user(user)[source]

Check if user is test user.

To be removed after test-phase is over.

notifications.views.forward(request, slug)[source]

Open the url of the target object of the notification and redirect.

In addition, mark the notification as read.

notifications.views.mark_toggle(request, slug=None)[source]

Toggle mark as read.

notifications.views.live_unread_notification_count(request)[source]

Return JSON of unread messages count.

notifications.views.live_notification_list(request)[source]

Return JSON of unread count and content of messages.