my example (I know it's not technically correct, it's just an example):
class ipAddy(models.Model):
network=models.ForeignKey(network)
ipAddy=models.IPAddressField(foo)
class device(models.Model):
hostname=models.CharField(foo)
foo=models.CharField(bar)
bar=models.CharField(foo)
class Meta:
abstract = True
class linuxServer(device):
linuxInfo - models.CharField(foo)
class macServer(device):
macInfo = models.CharField(foo)
My goal:
For each device-based model to have a many-to-one relationship to the ipAddy model. In the real world speak: I'd like each type of server or device to be able to have multiple IP addresses.
What would be the best way to accomplish this in Django 1.2?
All constructive thoughts are appreciated.