

def group_and_bridge(request):
    '\n    Given the request we can depend on the GroupMiddleware to provide the\n    group and bridge.\n    '
    group = getattr(request, 'group', None)
    if group:
        bridge = request.bridge
    else:
        bridge = None
    return (group, bridge)

dataset/ETHPy150Open amarandon/smeuhsocial/apps/photos/views.py group_and_bridge/original