Mark moderated messages as not notified
This commit is contained in:
parent
f6d6d7b850
commit
34ea388269
1 changed files with 2 additions and 2 deletions
|
@ -130,9 +130,9 @@ class CommentAdmin(admin.ModelAdmin):
|
||||||
actions = ["approve_comments", "reject_comments"]
|
actions = ["approve_comments", "reject_comments"]
|
||||||
|
|
||||||
def approve_comments(self, request, queryset):
|
def approve_comments(self, request, queryset):
|
||||||
count = queryset.update(status=Comment.APPROVED)
|
count = queryset.update(status=Comment.APPROVED, user_notified=False)
|
||||||
messages.success(request, f"Approved {count} message(s).")
|
messages.success(request, f"Approved {count} message(s).")
|
||||||
|
|
||||||
def reject_comments(self, request, queryset):
|
def reject_comments(self, request, queryset):
|
||||||
count = queryset.update(status=Comment.REJECTED)
|
count = queryset.update(status=Comment.REJECTED, user_notified=False)
|
||||||
messages.success(request, f"Rejected {count} message(s).")
|
messages.success(request, f"Rejected {count} message(s).")
|
||||||
|
|
Reference in a new issue