Postfix's Transport Encryption under Control of the User
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.py 452B

1234567891011121314151617181920
  1. from django.contrib import admin
  2. from django.contrib.auth.admin import UserAdmin
  3. from .models import User, TLSNotification
  4. # Custom User Model
  5. # see: Two Scoops of Django, page 258
  6. # see: https://www.youtube.com/watch?v=0bAJV0zNWQw
  7. @admin.register(User)
  8. class UserAdmin(UserAdmin):
  9. pass
  10. class TLSNotificationAdmin(admin.ModelAdmin):
  11. list_display = ('queue_id', 'notification')
  12. admin.site.register(TLSNotification, TLSNotificationAdmin)