1. Derek Payton
  2. django-activitysync

Commits

Derek Payton  committed 06f4236

Use .published(), not .all()

  • Participants
  • Parent commits 7f38812
  • Branches default

Comments (0)

Files changed (1)

File activitysync/templatetags/activitysync_extras.py

View file
 
 @register.inclusion_tag('activitysync/activities_tag.html')
 def render_recent_activity(limit=20, use_date_headers=False):
-    activities = Activity.objects.all()[:limit]
+    activities = Activity.objects.published()[:limit]
     return {
         'activities': activities,
         'use_date_headers': use_date_headers,