mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-21 23:27:31 +02:00
dcc3e39914
Make the file tree a bit flatter in order to make the project less confusing
14 lines
306 B
Python
14 lines
306 B
Python
from django.db import models
|
|
from .user import User
|
|
|
|
|
|
class MailAlias(models.Model):
|
|
email_address = models.EmailField()
|
|
user = models.ForeignKey(User, on_delete=models.CASCADE)
|
|
|
|
def __str__(self):
|
|
return self.email_address
|
|
|
|
class Meta:
|
|
verbose_name_plural = "Mail Aliases"
|