NS_TYPE_CHOICES address NS NS nameserver CNAME CNAME canonical name MB

1
NS_TYPE_CHOICES = ( ('A','"A" - address'), ('NS','"NS" - nameserver'), ('CNAME','"CNAME" - canonical name'), ('MB','"MB" - mailbox dname'), ('MG','"MG" - mail group'), ('MR','"MR" - mail rename dname'), ('NULL','"NULL" - null RR'), ('WKS','"WKS" - well known service description'), ('PTR','"PTR" - domain name pointer'), ('HINFO','"HINFO" - host information'), ('MINFO','"MINFO" - mailbox or mail list information'), ('MX','"MX" - mail exchange'), ('TXT','"TXT" - text strings'), ('AXFR','"AXFR" - Q request for a transfer of an entire zone'), ('MAILB','"MAILB" - Q request for mailbox-related records'), ('*','"*" - Q request for all'), )NS_CLASS_CHOICES = ( ('IN','"IN" - the Internet'), ('CH','"CH" - the CHAOS class'), ('HS','"HS" - Hesiod [Dyer 87]'), ('*','"*" - Q any class'), )class ZonesList (models.Model): domain = models.CharField(max_length=255) filename = models.CharField(max_length=255) user = models.ForeignKey(User,default='') group = models.ForeignKey(Group) class Admin: list_display = ('domain','filename') ordering = ('-domain',) #list_filter = ('owner',) search_fields = ('domain',)class ZoneIndex (models.Model): ttl = models.IntegerField() serial = models.IntegerField() refresh = models.IntegerField() expire = models.IntegerField() negative = models.IntegerField() domain = models.ForeignKey(ZonesList) master_ns = models.CharField(max_length=255) email = models.CharField(max_length=255) class Admin: list_display = ('domain','master_ns','email','ttl','serial') ordering = ('-domain',) list_filter = ('domain',) search_fields = ('domain',)class ZoneType (models.Model): zone = models.CharField(max_length=255) ttl = models.IntegerField() ns_class = models.CharField(max_length=2, choices=NS_CLASS_CHOICES) ns_type = models.CharField(max_length=5, choices=NS_TYPE_CHOICES) address = models.CharField(max_length=255) class Admin: list_display = ('zone','ttl','ns_class','ns_type','address') ordering = ('-zone',) list_filter = ('ns_type','address') search_fields = ('zone','address')