コード例 #1
0
ファイル: views.py プロジェクト: pombredanne/turbion
def index(request):
    profile = get_profile(request)
    return {
        'profile': profile,
        'comments_page': paginate(
            watchlist.get_subcription_comments(profile),
            request.page,
            settings.TURBION_BLOG_POSTS_PER_PAGE
        ),
        'subscriptions': profile.subscriptions.filter(event__name='new_comment').\
                                        order_by('date').distinct()
    }
コード例 #2
0
ファイル: feeds.py プロジェクト: pombredanne/turbion
 def items(self, user):
     return watchlist.get_subcription_comments(user)[:50]