Commit Graph

21 Commits

Author SHA1 Message Date
Lauréline Guérin ccf99d908f
dj2: is_anonymous and is_authenticated are now properties (#36895)
remove RemovedInDjango20Warning:
Using user.is_authenticated() and user.is_anonymous() as a method is deprecated.
Remove the parentheses to use it as an attribute.
2019-10-29 08:35:46 +01:00
Frédéric Péters 73648052ce pwa: add option to enable support for push notifications (#31388) 2019-07-02 11:11:31 +02:00
Frédéric Péters 67931d2d78 add compatibility with python 3 (#25486) 2018-07-28 09:55:59 +02:00
Frédéric Péters e985190952 notifications: don't make ack() imply forget() (#25186) 2018-07-11 11:02:08 +02:00
Benjamin Dauvergne dab07696ff notifications: allow notifications without an end_timestamp (#22732)
Those notifications will disappear only with an action of the user.
2018-06-29 17:02:41 +02:00
Frédéric Péters a00a5358c4 notifications: add settings for default duration (#22730) 2018-03-29 13:37:46 +02:00
Benjamin Dauvergne 83d2de7030 notifications: make user optional in .visible() filter (#13122) 2018-03-21 11:03:30 +01:00
Benjamin Dauvergne 37c1985ccc notifications: allow dash in notification_id right part (#13122) 2018-03-21 11:03:21 +01:00
Benjamin Dauvergne ad3a44d64c notifications: do not unack automatically on .notify() (#13122)
It's also supported by the notification web-service.
2018-03-20 15:06:00 +01:00
Benjamin Dauvergne 8d9ac05b6d notifications: add a namespace() query filter (#13122) 2018-03-20 15:05:55 +01:00
Benjamin Dauvergne f2719b3a68 notifications: improve internal API (#22390)
* (user, external_id) is now unique, no need to user .first() / .last()
* new filter .find(user, id), .visible(user), new queryset actions .ack() and .forget()
* new property notification.visible to know if a notification is shown
* when notify() is called on an existing notification, it's unacked
* notify's parameters url, body and origin now default to '', serializer
has been updated
2018-03-19 10:53:09 +01:00
Frédéric Péters c4f9dde66e general: allow cells to override "loading..." message (#21853) 2018-02-22 15:41:27 +01:00
Serghei Mihai 92eff8df04 notifications: precise if notification is created in notify api (#21189) 2018-01-17 14:36:12 +01:00
Frédéric Péters ee04f9f1e5 trivial: remove unused import 2017-12-30 12:32:22 +01:00
Frédéric Péters 584a4473e1 notifications: refresh cell every 2 minutes (#17116) 2017-06-23 13:08:15 +02:00
Frédéric Péters bf9a54b8dc notifications: add new_notifications to context variables (#17111) 2017-06-23 13:08:15 +02:00
Frédéric Péters 71f0dd7b14 notifications: turn notification cell synchronous (#17109) 2017-06-23 13:08:15 +02:00
Frédéric Péters 27f9a5e7dd notifications: add an origin attribute to notifications (#17106) 2017-06-23 13:08:15 +02:00
Frédéric Péters cd476b852f notifications: only include unread count in badge (#16963) 2017-06-18 13:58:12 +02:00
Frédéric Péters 63f6794e8b add indexing of pages (#6793) 2017-03-13 09:29:36 +01:00
Thomas NOËL 963bc1faf7 add notification system (#13812) 2016-11-18 14:58:50 +01:00