Use ManyToMany for Service groups

This commit is contained in:
2010-03-01 12:13:35 +00:00
parent 82e757fa0d
commit e701098e49

View File

@@ -57,7 +57,7 @@ class Service(models.Model):
url = models.CharField(max_length=200, blank=True)
active = models.BooleanField(default=True)
api = models.CharField(max_length=200)
groups = models.ForeignKey(Group)
groups = models.ManyToManyField(Group)
def __str__(self):
#return "%s: %s" % (self.name, self.api)