Source code for intranet.apps.emailfwd.models
from django.conf import settings
from django.db import models
[docs]class SeniorEmailForward(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
email = models.EmailField()
def __str__(self):
return str(self.user)