Switch to GenericIPAddressField
[htsworkflow.git] / bcmagic / models.py
index c91905b7259277d2728e61eb6cb010d2fbc070ee..f75fdef35d82679b004f79ad8ee4eeb9190918e8 100644 (file)
@@ -23,7 +23,7 @@ class Printer(models.Model):
     """
     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')