update: LDPPermissions added

This commit is contained in:
Gaëlle Morin 2019-08-01 12:03:00 +00:00
parent 8f4b61d163
commit 97e834bcaa
1 changed files with 3 additions and 1 deletions

View File

@ -30,8 +30,10 @@ class Notification(Model):
class Meta(Model.Meta):
#permission_classes = [InboxPermissions]
depth = 0
auto_author = 'user'
ordering = ['-date']
anonymous_perms = ['add']
owner_perms = ['view', 'change']
def __str__(self):
return '{}'.format(self.type)