diff --git a/sas/models.py b/sas/models.py index f274ab93..e562a144 100644 --- a/sas/models.py +++ b/sas/models.py @@ -167,10 +167,10 @@ def sas_notification_callback(notif): count = Picture.objects.filter(is_moderated=False).count() if count: notif.viewed = False - notif.param = "%s" % count - notif.date = timezone.now() else: notif.viewed = True + notif.param = "%s" % count + notif.date = timezone.now() class PeoplePictureRelation(models.Model): """