2
0

models.py 693 B

123456789101112131415161718192021
  1. from django.db import models
  2. # Create your models here.
  3. from domini.models import *
  4. class Alias(models.Model):
  5. id = models.IntegerField(db_column='id',primary_key=True)
  6. mailfrom = models.CharField(db_column='from',max_length=128)
  7. domain = models.ForeignKey('domini.Domini',db_column='domain',on_delete=models.CASCADE)
  8. mailto = models.CharField(db_column='to',max_length=256)
  9. enabled = models.BooleanField(db_column='enabled')
  10. tobedeleted = models.BooleanField(db_column='tobedeleted')
  11. locked = models.BooleanField(db_column='locked')
  12. nota = models.TextField(db_column='nota')
  13. class Meta:
  14. ordering = ['id']
  15. db_table = 'mail_alias'
  16. managed = False