Commit 5984e98b authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Edited some syntax errors

parent 43a70fc3
from django.shortcuts import render, redirect
from django.views.generic import DetailView, CreateView, UpdateView
from .models import ForumPost
from .forms import AddForumPostForm
from .models import ForumPost, Reply
# dashboard view from .models
def forum_view(request):
users = ForumPost.objects.all()
return render(request, 'forum/forum.html', {'users': users})
forumposts = ForumPost.objects.all()
return render(request, 'forum/forum.html', {'forumposts': forumposts})
class ForumPostDetailView(DetailView):
model = ForumPost
......
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