update: change owner field
This commit is contained in:
parent
1ebeff4b31
commit
fd1f78119b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user