mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-03 12:10:59 +00:00
Notification fix (#3939)
* Fix docstring for NotificationMessage class * Fix for 'refresh' button in notification table * Simplify API for marking notifications as 'read' - Simply update the detail serializer - No requirement for extra API endpoints - Same updates for news feed entry - Hide 'read' news on the home page - Add ability to mark news items as read via table * Bug fix for build.js * Fix for part category template
This commit is contained in:
@ -2199,14 +2199,13 @@ class NotificationEntry(models.Model):
|
||||
|
||||
|
||||
class NotificationMessage(models.Model):
|
||||
"""A NotificationEntry records the last time a particular notifaction was sent out.
|
||||
"""A NotificationMessage is a message sent to a particular user, notifying them of some *important information*
|
||||
|
||||
It is recorded to ensure that notifications are not sent out "too often" to users.
|
||||
Notification messages can be generated by a variety of sources.
|
||||
|
||||
Attributes:
|
||||
- key: A text entry describing the notification e.g. 'part.notify_low_stock'
|
||||
- uid: An (optional) numerical ID for a particular instance
|
||||
- date: The last time this notification was sent
|
||||
target_object: The 'target' of the notification message
|
||||
source_object: The 'source' of the notification message
|
||||
"""
|
||||
|
||||
# generic link to target
|
||||
|
Reference in New Issue
Block a user