Skip to content

Commit

Permalink
cu
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Nov 27, 2017
1 parent e4b69b2 commit e634b10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion g3w-admin/client/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def get_context_data(self, **kwargs):
contextData = super(ClientView, self).get_context_data(**kwargs)

# group serializer
group = get_object_or_404(Group, slug=kwargs['group_slug'])
try:
group = self.project.group
except:
group = get_object_or_404(Group, slug=kwargs['group_slug'])
groupSerializer = GroupSerializer(group, projectId=str(self.project.pk), projectType=kwargs['project_type'],
request=self.request)

Expand Down

0 comments on commit e634b10

Please sign in to comment.