Applying QuerySets to the data and returning the result of this querySet to the table (django.tables2)

0

Hello! I'm new to Django and am having a big question: I have following an "Event" model, and a view that is composed of a form (which I use to apply a filter to the data) and a table (where data is loaded ). Well my question is: I want to group the events by date and by the database (attribute of the model) and on top of that have a new column in the table "number of events" that will count those events grouped by the date and the database (here I would use the queryset with the annotate). What I do not know how to do is to throw these new data to my table! :

Can anyone help me?

    
asked by anonymous 06.09.2018 / 20:48

0 answers