MyModel.history().annotate(num_historical_records=Count(1)).order_by('id'). it reverts to grouping by pk (history_id). as expected from django doc.
確定! 回上一頁