add read to api

This commit is contained in:
Matthias 2021-11-27 22:02:04 +01:00
parent 2c9fc11349
commit f2d0b06881
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -118,6 +118,8 @@ class NotificationMessageSerializer(SettingsSerializer):
age_human = serializers.CharField()
read = serializers.BooleanField()
class Meta:
model = NotificationMessage
fields = [
@ -130,4 +132,5 @@ class NotificationMessageSerializer(SettingsSerializer):
'creation',
'age',
'age_human',
'read',
]