Fix slug bug
This commit is contained in:
parent
e269a4d63f
commit
d1d0c6e1f4
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class OrganizationMixin(OrganizationBase):
|
||||||
)
|
)
|
||||||
if self.organization.slug != kwargs["slug"]:
|
if self.organization.slug != kwargs["slug"]:
|
||||||
return HttpResponsePermanentRedirect(
|
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)
|
return super(OrganizationMixin, self).dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue