Group By a date field


    We can group by date
    In this example, we can count how many user joined each day.
    
class LogIns(SlickReportView):
    

    report_model = User
    date_field = 'date_joined'
    group_by = 'date_joined'
    columns = ['date_joined', 'count__logins']

    chart_settings = [{
        'type': 'bar',
        'data_source': ['count__logins'],
        'title_source': 'date_joined',
        'title': 'Logins Per Day'
    }, ]

                

Live Example

Filters

The groups this user belongs to. A user will get all permissions granted to each of their groups.
Specific permissions for this user.

Results

date joined Count