Simple Filter


    Let's start by creating a page where we can filter our report_model record / dataset.
    Slick Reporting come with `SlickReportView` CBV.

    By adding this view to your urls.py
        path('', views.SimpleListReport.as_view()),
    You'll see a results page as the shown below
    
class SimpleListReport(SlickReportView):
    
    report_model = SalesLineTransaction
    # the model containing the data we want to analyze

    date_field = 'transaction_date'
    # a date/datetime field on the report model

    # fields on the report model ... surprise !
    columns = ['transaction_date', 'client', 'product', 'quantity', 'price', 'value']

                

Live Example

Filters

Results

Date client product Quantity Price Value