notifications.managers module

class notifications.managers.NotificationQuerySet(model=None, query=None, using=None, hints=None)[source]

Bases: django.db.models.query.QuerySet

Queryset for Notification model.

unsent()[source]

Return all non-emailed Notications.

sent()[source]

Return all emailed Notications.

unread()[source]

Return only unread items in the current queryset.

unread_or_today()[source]

Return only unread items and those created in the last 24 hours.

pseudo_unread()[source]

Return only unread items in the current queryset.

read()[source]

Return only read items in the current queryset.

mark_all_as_read(recipient=None)[source]

Mark as read any unread messages in the current queryset.

mark_all_as_pseudo_read(recipient=None)[source]

Mark as read any unread messages in the current queryset.

mark_all_as_unread(recipient=None)[source]

Mark as unread any read messages in the current queryset.

deleted()[source]

Return only deleted items in the current queryset.

active()[source]

Return only active(un-deleted) items in the current queryset.

mark_all_as_deleted(recipient=None)[source]

Mark current queryset as deleted.

mark_all_as_active(recipient=None)[source]

Mark current queryset as active(un-deleted).

mark_as_unsent(recipient=None)[source]
mark_as_sent(recipient=None)[source]