Commit 5a483a8c authored by Norberto Tadeo's avatar Norberto Tadeo 😔

Merge branch 'Forum' into 'master'

Forum

See merge request !7
parents f170f54d 669110ae
from django.shortcuts import render from django.shortcuts import render
from . import models from . import models
from asyncio.windows_events import NULL #from asyncio.windows_events import NULL
from django.http import HttpResponse from django.http import HttpResponse
def displayForumPosts(request): def displayForumPosts(request):
...@@ -24,7 +24,7 @@ def displayForumPosts(request): ...@@ -24,7 +24,7 @@ def displayForumPosts(request):
R_body = Reply.reply_body R_body = Reply.reply_body
R_pub_date = Reply.pub_date R_pub_date = Reply.pub_date
if ReplytoPost == P_title and R_body != NULL: if ReplytoPost == P_title and R_body != None:
ReplyThread = ( ReplyThread = (
"<br> Reply by <i>" + str(Reply.author.first_name) + " " + str(Reply.author.last_name) + "<br> Reply by <i>" + str(Reply.author.first_name) + " " + str(Reply.author.last_name) +
"</i> dated " + str(R_pub_date) + ": <br>" + R_body "</i> dated " + str(R_pub_date) + ": <br>" + R_body
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment