Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. elif request.method == 'POST':
  2. article_id = int(request.POST['id'])
  3. new_tag = request.POST['new_tag']
  4. for article in articles_list:
  5. if article[0] == article_id:
  6. article[4].append(new_tag)
  7. return article_by_id(request, article_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement