Changeset 6281


Ignore:
Timestamp:
Sep 15, 2008, 7:21:50 PM (16 years ago)
Author:
roland
Message:

added LinkAlias

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/README

    r6229 r6281  
    77http://code.google.com/p/django-command-extensions/
    88
    9 Add 'django_extensions' to settings.py
    10 
    11 For compatibility with djangotrunk:
    12 In models.py replace maxlength by max_length
     9Add 'extensions' to settings.py
    1310
    1411Using the djangotrunk execute:
  • exodus/models.py

    r6257 r6281  
    9494                return "%s:%s" % (self.node.name, self.iface)
    9595
     96class InterfaceAlias(models.Model):
     97        iface = models.ForeignKey(Interface,related_name='child')
     98        ip = models.IPAddressField()
     99        netmask = models.IntegerField(default=30)
     100        shortdesc = models.CharField(blank=True, max_length=10)
     101        desc = models.CharField(blank=True, max_length=100)
     102        linkAlias = models.ForeignKey('self', blank=True, null=True)
     103        link = models.ForeignKey(Interface, blank=True, null=True)
     104       
     105        def __str__(self):
     106                return "Alias %s" % (self.iface)
     107
    96108class PublicAP(models.Model):
    97109    iface = models.ForeignKey(Interface)
Note: See TracChangeset for help on using the changeset viewer.