

@login_required
def your_photos(request, template_name='photos/yourphotos.html'):
    '\n    photos for the currently authenticated user\n    '
    (group, bridge) = group_and_bridge(request)
    photos = Image.objects.filter(member=request.user)
    if group:
        photos = request.content_objects(photos, join='pool', gfk_field='content_object')
    else:
        photos = photos.filter(pool__object_id=None)
    photos = photos.order_by('-date_added')
    ctx = group_context(group, bridge)
    ctx.update({
        'photos': photos,
    })
    return render_to_response(template_name, RequestContext(request, ctx))

dataset/ETHPy150Open amarandon/smeuhsocial/apps/photos/views.py your_photos/VarMisuse@52/88 `group`->`request`