From 0c27a6cb192fda91a03d9b99200aa24f8c04e054 Mon Sep 17 00:00:00 2001 From: Sanj B Date: Fri, 6 Jan 2012 18:35:24 +0530 Subject: [PATCH] silly, wrong link to frontend view when article has product --- edgware/editor/views.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/edgware/editor/views.py b/edgware/editor/views.py index 9277d4c..6721677 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -93,10 +93,11 @@ def edit_article(request, id): if not a.can_edit(user): return HttpResponse("sorry, you cannot edit this article. you either do not have permissions, or it is locked.") p = a.product - if p is not None: - frontend_url = "/edit/article_frontend/%d/%d/" % (p.id, a.order) - else: - frontend_url = "/edit/article_web/%d/" % a.id +# if p is not None: +# frontend_url = "/edit/article_frontend/%d/%d/" % (p.id, a.order) +# else: +# frontend_url = "/edit/article_web/%d/" % a.id + frontend_url = "/edit/article_web/%d/" % a.id rDict = { 'categories': c, 'article_id': id,