Skip to content

Commit

Permalink
Fix map alias url (#844)
Browse files Browse the repository at this point in the history
Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored May 21, 2024
1 parent cec04d2 commit 23d9721
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion g3w-admin/client/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ def get_context_data(self, **kwargs):
contextData = super(ClientView, self).get_context_data(**kwargs)

# group serializer
try:
group = self.project.group
except:
group = get_object_or_404(Group, slug=kwargs['group_slug'])

groupSerializer = GroupSerializer(
getattr(self.project, 'group', get_object_or_404(Group, slug=kwargs['group_slug'])),
group,
projectId=str(self.project.pk),
projectType=kwargs['project_type'],
request=self.request
Expand Down

0 comments on commit 23d9721

Please sign in to comment.