Improve moderation messages somewhat

Change the subject to use the title of the object instead of the id, and
include a link to the moderation page. There's surely more to be done,
but this is a decent start.
This commit is contained in:
Magnus Hagander
2020-09-18 11:13:36 +02:00
parent eec44cb08e
commit d7d5b105d1
2 changed files with 6 additions and 5 deletions

View File

@ -378,7 +378,7 @@ def _send_moderation_message(request, obj, message, notice, what):
send_simple_mail(settings.NOTIFICATION_FROM,
settings.NOTIFICATION_EMAIL,
"{} {} by {}".format(obj._meta.verbose_name.capitalize(), what, modname),
"{} '{}' {} by {}".format(obj._meta.verbose_name.capitalize(), obj.title, what, modname),
admmsg)