diff --git a/geonode/monitoring/migrations/0024_auto_20190605_1619.py b/geonode/monitoring/migrations/0024_auto_20190605_1619.py new file mode 100644 index 00000000000..a031f1dd6de --- /dev/null +++ b/geonode/monitoring/migrations/0024_auto_20190605_1619.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-06-05 16:19 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('monitoring', '0023_auto_20190528_0906'), + ] + + operations = [ + migrations.AlterField( + model_name='host', + name='name', + field=models.CharField(max_length=255), + ), + ] diff --git a/geonode/monitoring/models.py b/geonode/monitoring/models.py index 4fdd05a152f..3a40de15c82 100644 --- a/geonode/monitoring/models.py +++ b/geonode/monitoring/models.py @@ -78,7 +78,7 @@ class Host(models.Model): """ name = models.CharField( max_length=255, - unique=True, + unique=False, blank=False, null=False) ip = models.GenericIPAddressField(null=False, blank=False)