diff --git a/judge/views/organization.py b/judge/views/organization.py index 1ea536f..28e8824 100644 --- a/judge/views/organization.py +++ b/judge/views/organization.py @@ -137,7 +137,7 @@ class OrganizationMixin(OrganizationBase): ) if self.organization.slug != kwargs["slug"]: return HttpResponsePermanentRedirect( - request.get_full_path().replace(kwargs["slug"], self.object.slug) + request.get_full_path().replace(kwargs["slug"], self.organization.slug) ) return super(OrganizationMixin, self).dispatch(request, *args, **kwargs)