/usr/share/pyshared/mailer/admin.py is in python-django-mailer 0.2a1.dev3-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from django.contrib import admin
from mailer.models import Message, DontSendEntry, MessageLog
class MessageAdmin(admin.ModelAdmin):
list_display = ["id", "to_addresses", "subject", "when_added", "priority"]
class DontSendEntryAdmin(admin.ModelAdmin):
list_display = ["to_address", "when_added"]
class MessageLogAdmin(admin.ModelAdmin):
list_display = ["id", "to_addresses", "subject", "when_attempted", "result"]
admin.site.register(Message, MessageAdmin)
admin.site.register(DontSendEntry, DontSendEntryAdmin)
admin.site.register(MessageLog, MessageLogAdmin)
|