Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

object detail views respect live_objects manager

  • Loading branch information...
commit 4f934b634be8711b3689138f93de1e3243ae0529 1 parent b3894eb
@ryanpitts ryanpitts authored
View
6 source/articles/views.py
@@ -104,3 +104,9 @@ def get_context_data(self, **kwargs):
class ArticleDetail(DetailView):
model = Article
+
+ def get_queryset(self):
+ queryset = Article.live_objects.all()
+
+ return queryset
+
View
5 source/code/views.py
@@ -35,3 +35,8 @@ def get_context_data(self, **kwargs):
class CodeDetail(DetailView):
model = Code
+
+ def get_queryset(self):
+ queryset = Code.live_objects.all()
+
+ return queryset
View
10 source/people/views.py
@@ -15,6 +15,11 @@ def get_queryset(self):
class PersonDetail(DetailView):
model = Person
+ def get_queryset(self):
+ queryset = Person.live_objects.all()
+
+ return queryset
+
@@ -29,3 +34,8 @@ def get_queryset(self):
class OrganizationDetail(DetailView):
model = Organization
+
+ def get_queryset(self):
+ queryset = Organization.live_objects.all()
+
+ return queryset
Please sign in to comment.
Something went wrong with that request. Please try again.