Exemple #1
0
def users_reports_address(request):

    context = {
        'sadmin2_menu_main_active': 'users',
        'sadmin2_breadcrumbs_active': 'users_reports_address',
        'sadmin2_menu_tab': menu.sadmin2_menu_tab_users,
        'sadmin2_menu_tab_active': 'reports'
    }

    return insecure_reports_address(
        request,
        UserLocation.objects.all(),
        extra_context=context
    )
Exemple #2
0
def report_address(request, event_pk):

    event = get_object_or_404(Event, pk=event_pk)

    context = {
        'sadmin2_menu_main_active': 'events',
        'sadmin2_breadcrumbs_active': 'event_report_address',
        'sadmin2_menu_tab': menu.sadmin2_menu_tab_event,
        'sadmin2_menu_tab_active': 'reports',

        'event': event
    }

    return insecure_reports_address(
        request,
        UserLocation.objects.filter(user__attend__event=event),
        extra_context=context
    )