From 840509d12d4536c5813e0f9486916e23eb1e08ff Mon Sep 17 00:00:00 2001 From: Macartur Sousa Date: Thu, 27 Aug 2015 10:14:25 -0300 Subject: [PATCH] Fixed GitlabGroup url and projects property --- colab/plugins/gitlab/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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