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.

models.py 530B

12345678910111213141516171819202122
  1. from django.db import models
  2. from django.contrib.auth.models import AbstractUser
  3. class User(AbstractUser):
  4. """
  5. Custom User Model
  6. see: Two Scoops of Django, page 258
  7. see: https://www.youtube.com/watch?v=0bAJV0zNWQw
  8. """
  9. pass
  10. class TLSNotification(models.Model):
  11. """Log entries for notifications"""
  12. queue_id = models.CharField('Queue ID', max_length=20)
  13. notification = models.DateTimeField('Notification') # Time of the last notification
  14. def __str__(self):
  15. return self.queue_id