Added a table helper function for Django queryset objects