X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fcore%2Fmodels%2Fsite.py;h=fe7fb93b88422e4524c06c6577a9d14f2c8b617e;hb=4eb663ab14fcd1e97b9d1390b7cc98a468483c2f;hp=eea62fe152d168c68f716df9af1fec84ebf854c0;hpb=709831872dcc963a661ab01a1e5d355df82c2bee;p=plstackapi.git diff --git a/planetstack/core/models/site.py b/planetstack/core/models/site.py index eea62fe..fe7fb93 100644 --- a/planetstack/core/models/site.py +++ b/planetstack/core/models/site.py @@ -21,7 +21,7 @@ class Site(PlCoreBase): abbreviated_name = models.CharField(max_length=80) #deployments = models.ManyToManyField('Deployment', blank=True, related_name='sites') - deployments = models.ManyToManyField('Deployment', through='SiteDeployments', blank=True, help_text="Select which sites are allowed to host nodes in this deployment") + deployments = models.ManyToManyField('Deployment', through='SiteDeployments', blank=True, help_text="Select which sites are allowed to host nodes in this deployment", related_name='sites') tags = generic.GenericRelation(Tag) def __unicode__(self): return u'%s' % (self.name)