Django 1.9 added support for ipv6 addresses and changed from
IPAddressField to GenericIPAddressField
"""
name = models.CharField(max_length=256)
model = models.CharField(max_length=64, choices=PRINTER_MODELS)
"""
name = models.CharField(max_length=256)
model = models.CharField(max_length=64, choices=PRINTER_MODELS)
- ip_address = models.IPAddressField()
+ ip_address = models.GenericIPAddressField()
label_shape = models.CharField(max_length=32, choices=LABEL_SHAPES)
label_width = models.FloatField(help_text='width or diameter in inches')
label_height = models.FloatField(help_text='height in inches')
label_shape = models.CharField(max_length=32, choices=LABEL_SHAPES)
label_width = models.FloatField(help_text='width or diameter in inches')
label_height = models.FloatField(help_text='height in inches')
"""
name = models.CharField(max_length=256)
model = models.CharField(max_length=64, default='ZM400')
"""
name = models.CharField(max_length=256)
model = models.CharField(max_length=64, default='ZM400')
- ip_address = models.IPAddressField()
+ ip_address = models.GenericIPAddressField()
labels = models.CharField(max_length=200)
notes = models.TextField(null=True, blank=True)
labels = models.CharField(max_length=200)
notes = models.TextField(null=True, blank=True)