Commit d4909c98 authored by Trisha Angel Millena's avatar Trisha Angel Millena

edited views.py

parent 782f8150
from django.shortcuts import render
from django.http import HttpResponse
from .models import ForumPost, Reply
# Create your views here.
for post in posts:
for reply in replies:
if reply.post.title == post.title:
welcoming = welcoming + post.title + " by " + " posted " + post.pub_datetime.strftime('%I:%M %p') + ":<br>" + post.body + "<br>" + "Reply by " + " posted " + reply.pub_datetime.strftime('%I:%M %p') + ":<br>" + reply.body + "<br>"
welcoming = welcoming + post.title + " by " + " posted " + post.pub_datetime.strftime('%I:%M %p') + ":<br>" + post.body + "<br>"
return HttpResponse(welcoming)
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