[extensions-web] Fix the latest version view slug redirection.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Fix the latest version view slug redirection.
- Date: Wed, 19 Oct 2011 22:26:00 +0000 (UTC)
commit af389bfd97b364caeeae370e35b625525a5f693c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Oct 19 18:10:54 2011 -0400
Fix the latest version view slug redirection.
sweettooth/extensions/views.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index bc793ab..1d1d81f 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -32,8 +32,8 @@ def extension_latest_version_view(request, obj, **kwargs):
slug = kwargs.get('slug')
if slug != extension.slug:
- kwargs = dict(kwargs)
- kwargs.update(dict(slug=extension.slug))
+ kwargs.update(dict(slug=extension.slug,
+ pk=extension.pk))
return redirect('extensions-detail', **kwargs)
# If the user can edit the model, let him do so.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]