diff --git a/colab/plugins/gitlab/models.py b/colab/plugins/gitlab/models.py index 3edfd17..4ab0b7d 100644 --- a/colab/plugins/gitlab/models.py +++ b/colab/plugins/gitlab/models.py @@ -42,13 +42,13 @@ class GitlabGroup(models.Model): projects = GitlabProject.objects.all() result = list() for project in projects: - if self.name.lower() in project.group: + if self.path in project.group: result.append(project) return result @property def url(self): - return u'/gitlab/groups/{}'.format(self.id) + return u'/gitlab/groups/{}'.format(self.path) class Meta: verbose_name = _('Gitlab Group') -- libgit2 0.21.2