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