Пример #1
0
def about(request):
    peeps = []
    comments = []
    for short_id in settings.ABOUT_PAGE_COMMENTS:
        mapping_id = get_mapping_id_from_short_id(short_id)
        comment = get_object_or_404(Comment.all_objects, id=mapping_id)
        comments.append(comment)
        peeps.append(TileDetails(comment.details()))

    tiles = TileDetails.from_queryset_with_viewer_stickers(request.user, comments)
    sort = None
    show_pins = False
    render_options = tile_render_options(sort, show_pins)

    return r2r_jinja("about.html", locals())
Пример #2
0
 def tiles():
     return TileDetails.from_queryset_with_viewer_stickers(user, self.comments)
Пример #3
0
 def tiles():
     return TileDetails.from_queryset_with_viewer_stickers(
         user, self.comments)