Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
43c4e584
Commit
43c4e584
authored
Apr 04, 2022
by
Miguel Luis D. Bandelaria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: resolved attribute error by repopulating the replies and posts
parent
7fab32d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
views.cpython-39.pyc
widget_group_17/forum/__pycache__/views.cpython-39.pyc
+0
-0
views.py
widget_group_17/forum/views.py
+2
-2
No files found.
widget_group_17/db.sqlite3
View file @
43c4e584
No preview for this file type
widget_group_17/forum/__pycache__/views.cpython-39.pyc
View file @
43c4e584
No preview for this file type
widget_group_17/forum/views.py
View file @
43c4e584
...
...
@@ -12,7 +12,7 @@ def index(request):
replies
=
Reply
.
objects
.
all
()
for
post
in
posts
:
forum_view
+=
"<br> {} by
{} {}
dated {}: <br> {}"
.
\
forum_view
+=
"<br> {} by
[First name Last Name]
dated {}: <br> {}"
.
\
format
(
post
.
post_title
,
post
.
author
.
first_name
,
...
...
@@ -22,7 +22,7 @@ def index(request):
)
for
reply
in
replies
:
forum_view
+=
'<br> Reply by
{} {}
dated {}: <br> {}'
.
\
forum_view
+=
'<br> Reply by
[First name Last name]
dated {}: <br> {}'
.
\
format
(
reply
.
author
.
first_name
,
reply
.
author
.
last_name
,
...
...
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