Commits

Derek Payton committed 06f4236

Use .published(), not .all()

Comments (0)

Files changed (1)

activitysync/templatetags/activitysync_extras.py

 
 @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,