silly, wrong link to frontend view when article has product

This commit is contained in:
Sanj B 2012-01-06 18:35:24 +05:30
parent bba5749d6b
commit 0c27a6cb19

View File

@ -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,