Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group22
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John Tamano
widget_group22
Commits
48c33965
Commit
48c33965
authored
Apr 07, 2022
by
Norberto Tadeo
😔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed condition from NULL to None
parent
c86b82ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
views.py
widget_group22/forum/views.py
+2
-2
No files found.
widget_group22/forum/views.py
View file @
48c33965
from
django.shortcuts
import
render
from
.
import
models
from
asyncio.windows_events
import
NULL
#
from asyncio.windows_events import NULL
from
django.http
import
HttpResponse
def
displayForumPosts
(
request
):
...
...
@@ -24,7 +24,7 @@ def displayForumPosts(request):
R_body
=
Reply
.
reply_body
R_pub_date
=
Reply
.
pub_date
if
ReplytoPost
==
P_title
and
R_body
!=
N
ULL
:
if
ReplytoPost
==
P_title
and
R_body
!=
N
one
:
ReplyThread
=
(
"<br> Reply by <i>"
+
str
(
Reply
.
author
.
first_name
)
+
" "
+
str
(
Reply
.
author
.
last_name
)
+
"</i> dated "
+
str
(
R_pub_date
)
+
": <br>"
+
R_body
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment