mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-16 21:30:24 +00:00
Update last instance of 'readed' to unread.
This commit is contained in:
parent
c095bda717
commit
a2b310b6cd
1 changed files with 2 additions and 2 deletions
|
|
@ -118,8 +118,8 @@ class Notification(models.Model):
|
|||
return id2slug(self.id)
|
||||
|
||||
def mark_as_read(self):
|
||||
if not self.readed:
|
||||
self.readed = True
|
||||
if self.unread:
|
||||
self.unread = False
|
||||
self.save()
|
||||
|
||||
EXTRA_DATA = False
|
||||
|
|
|
|||
Loading…
Reference in a new issue