From fd1f78119b6be0e14ee9bd850049a73003d9119e Mon Sep 17 00:00:00 2001 From: Matthieu Fesselier Date: Wed, 7 Aug 2019 15:57:57 +0200 Subject: [PATCH] update: change owner field --- djangoldp_notification/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 761c425..2bbc35b 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -28,11 +28,11 @@ class Notification(Model): unread = models.BooleanField(default=True) class Meta(Model.Meta): - auto_author = 'user' + owner_field = 'user' ordering = ['-date'] anonymous_perms = ['add'] - authenticated_perms = [] - owner_perms = ['view', 'change'] + authenticated_perms = ['inherit'] + owner_perms = ['view', 'change', 'control'] def __str__(self): return '{}'.format(self.type)