Allowed you to access blog posts which are not active
This commit is contained in:
parent
cb29f28a78
commit
3071f24344
|
@ -11,7 +11,7 @@ from mhackspace.blog.serializers import PostSerializer, CategorySerializer
|
||||||
|
|
||||||
class BlogPost(DetailView):
|
class BlogPost(DetailView):
|
||||||
context_object_name = "post"
|
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):
|
def get_context_data(self, *args, **kwargs):
|
||||||
context = super(BlogPost, self).get_context_data(*args, **kwargs)
|
context = super(BlogPost, self).get_context_data(*args, **kwargs)
|
||||||
|
|
|
@ -10,4 +10,5 @@ body {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
line-height: 60px;
|
line-height: 60px;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue