Fixed issue with chaining queryset with list for group functionality