summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
552fe76)
- Add a filter to check that islive is set to true for blog entries, and
only display them if that is the case.
- return BlogEntry.objects.all().order_by('-publish_date')[:20]
+ return BlogEntry.objects.filter(islive=True).order_by('-publish_date')[:20]
- return BlogEntry.objects.all().order_by('-publish_date')
+ return BlogEntry.objects.filter(islive=True).order_by('-publish_date')
def author_name(self, obj):
return "Brett Parker"
def author_name(self, obj):
return "Brett Parker"