merged
This commit is contained in:
commit
a5255258eb
|
@ -93,9 +93,10 @@ def edit_article(request, id):
|
||||||
if not a.can_edit(user):
|
if not a.can_edit(user):
|
||||||
return HttpResponse("sorry, you cannot edit this article. you either do not have permissions, or it is locked.")
|
return HttpResponse("sorry, you cannot edit this article. you either do not have permissions, or it is locked.")
|
||||||
p = a.product
|
p = a.product
|
||||||
if p is not None:
|
# if p is not None:
|
||||||
frontend_url = "/edit/article_frontend/%d/%d/" % (p.id, a.order)
|
# frontend_url = "/edit/article_frontend/%d/%d/" % (p.id, a.order)
|
||||||
else:
|
# else:
|
||||||
|
# frontend_url = "/edit/article_web/%d/" % a.id
|
||||||
frontend_url = "/edit/article_web/%d/" % a.id
|
frontend_url = "/edit/article_web/%d/" % a.id
|
||||||
rDict = {
|
rDict = {
|
||||||
'categories': c,
|
'categories': c,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user