X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fcore%2Fmodels%2Fsite.py;h=8a6d7c4dc1d210523f722c013b67b5744a48e91e;hb=567e3e6b85c3d78449ca17a406e09abd488755e3;hp=5c84d1b920d2fc2b136c31ca3366efa4a2b82637;hpb=d351575354b2b220ebfae6d61bb8420d7bba52b8;p=plstackapi.git diff --git a/planetstack/core/models/site.py b/planetstack/core/models/site.py index 5c84d1b..8a6d7c4 100644 --- a/planetstack/core/models/site.py +++ b/planetstack/core/models/site.py @@ -4,6 +4,7 @@ from core.models import PlCoreBase from core.models import Deployment from core.models import Tag from django.contrib.contenttypes import generic +from geoposition.fields import GeopositionField class Site(PlCoreBase): @@ -11,6 +12,7 @@ class Site(PlCoreBase): name = models.CharField(max_length=200, help_text="Name for this Site") site_url = models.URLField(null=True, blank=True, max_length=512, help_text="Site's Home URL Page") enabled = models.BooleanField(default=True, help_text="Status for this Site") + location = GeopositionField() longitude = models.FloatField(null=True, blank=True) latitude = models.FloatField(null=True, blank=True) login_base = models.CharField(max_length=50, unique=True, help_text="Prefix for Slices associated with this Site")