Commit 48c33965 authored by Norberto Tadeo's avatar Norberto Tadeo 😔

changed condition from NULL to None

parent c86b82ed
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