update: change owner field

This commit is contained in:
Matthieu Fesselier 2019-08-07 15:57:57 +02:00
parent 1ebeff4b31
commit fd1f78119b
1 changed files with 3 additions and 3 deletions

View File

@ -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)