Skip to content

Commit

Permalink
Merge pull request #42 from unicef/fix-chart-201980
Browse files Browse the repository at this point in the history
fix charts
  • Loading branch information
domdinicola authored May 24, 2024
2 parents a2c2903 + 606a7e8 commit 8ff5f93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aurora/registration/admin/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,10 @@ def inspect_data(self, request, pk):

@view(change_form=True, html_attrs={"target": "_new"})
def charts(self, request, pk):
return HttpResponseRedirect(reverse("charts:registration", args=[pk]))
obj = self.get_object(request, pk)
return HttpResponseRedirect(
reverse("charts:registration", args=[obj.project.organization.slug, obj.project.pk, pk])
)

@view(permission=is_root, html_attrs={"class": "aeb-warn"})
def view_collected_data(self, button, pk):
Expand Down

0 comments on commit 8ff5f93

Please sign in to comment.