mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-12 23:05:12 +00:00
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:
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user