Skip to content
Snippets Groups Projects
Commit fd1f7811 authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

update: change owner field

parent 1ebeff4b
No related branches found
Tags v0.9.4
No related merge requests found
Pipeline #1638 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment