Allowed you to access blog posts which are not active

This commit is contained in:
Sam Collins 2018-10-17 19:32:22 +01:00 committed by Oliver Marks
parent cb29f28a78
commit 3071f24344
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from mhackspace.blog.serializers import PostSerializer, CategorySerializer
class BlogPost(DetailView):
context_object_name = "post"
queryset = Post.objects.filter(active=True, members_only=False)
queryset = Post.objects.filter(members_only=False)
def get_context_data(self, *args, **kwargs):
context = super(BlogPost, self).get_context_data(*args, **kwargs)

View File

@ -10,4 +10,5 @@ body {
height: 60px;
line-height: 60px;
background-color: #f5f5f5;
z-index: 10;
}