Commit c7feb7dbb77321ee5d110eeeb5681da3058e8841
1 parent
3e4172eb
Exists in
master
and in
3 other branches
Adding comment viewed update
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
mural/views.py
| ... | ... | @@ -65,6 +65,8 @@ class GeneralIndex(LoginRequiredMixin, generic.ListView): |
| 65 | 65 | |
| 66 | 66 | general_visualizations.update(viewed = True) |
| 67 | 67 | |
| 68 | + MuralVisualizations.objects.filter(user = user, viewed = False, comment__post__generalpost__isnull = False).update(viewed = True) | |
| 69 | + | |
| 68 | 70 | return general.order_by("-most_recent") |
| 69 | 71 | |
| 70 | 72 | def get_context_data(self, **kwargs): | ... | ... |