コード例 #1
0
ファイル: context_processors.py プロジェクト: ppiet/piosenka
def to_review(request):
    to_review = []
    to_review.extend(Article.items_reviewable_by(request.user))
    to_review.extend(ArtistNote.items_reviewable_by(request.user))
    to_review.extend(Post.items_reviewable_by(request.user))
    to_review.extend(Song.items_reviewable_by(request.user))
    to_review.extend(SongNote.items_reviewable_by(request.user))
    return {'to_review': to_review}
コード例 #2
0
def to_review(request):
    to_review = []
    to_review.extend(Annotation.items_reviewable_by(request.user))
    to_review.extend(Article.items_reviewable_by(request.user))
    to_review.extend(Event.items_reviewable_by(request.user))
    to_review.extend(Post.items_reviewable_by(request.user))
    to_review.extend(Song.items_reviewable_by(request.user))
    return {
        'to_review': to_review
    }