login/register/post

This commit is contained in:
j 2023-07-24 22:00:43 +01:00
commit 6fc506df2f
6 changed files with 283 additions and 108 deletions

View file

@ -43,13 +43,7 @@ def item(request, id):
qs = qs.filter(q)
comments = []
for comment in qs:
comments.append({
"id": comment.id,
"name": comment.name,
"date": comment.date,
"text": comment.text,
"published": comment.is_published,
})
comments.append(comment.json())
context['comments'] = mark_safe(json.dumps(comments))
user = {}
if request.user.is_staff: