summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikaël Ates <mates@entrouvert.com>2016-01-22 16:06:32 (GMT)
committerMikaël Ates <mates@entrouvert.com>2016-01-22 16:06:32 (GMT)
commita9b2a56973bccf7e267a5ab42432b8bfb2c5ea2d (patch)
tree93b04e57145fc1eff4ec16b8d677ea8ddad9dcf7
parent3d5c9a6b60782e7a2b28ce02bf3537880632d0dc (diff)
downloadbiomon-a9b2a56973bccf7e267a5ab42432b8bfb2c5ea2d.zip
biomon-a9b2a56973bccf7e267a5ab42432b8bfb2c5ea2d.tar.gz
biomon-a9b2a56973bccf7e267a5ab42432b8bfb2c5ea2d.tar.bz2
IPAddressField is deprecated, use GenericIPAddressField instead.
-rw-r--r--src/biomon/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/biomon/models.py b/src/biomon/models.py
index 7c0bd39..6b941f7 100644
--- a/src/biomon/models.py
+++ b/src/biomon/models.py
@@ -169,7 +169,7 @@ class Room(TimestampedAbstractModel):
class Reader(TimestampedAbstractModel):
- ip_address = models.IPAddressField()
+ ip_address = models.GenericIPAddressField()
management_port = models.IntegerField()
room = models.OneToOneField('Room', verbose_name = _(u'Room'),
null=True, blank=True, on_delete=models.PROTECT)