def __init__(self, request): con = Connection() db = con['test_datagrids_db'] DataGrid.__init__(self, request, MongoQuerySetAdapter(db.groups.find()), "All Groups") self.default_sort = "objid" self.default_columns = ["objid", "name"]
def __init__(self, request): DataGrid.__init__(self, request, DictionaryQuerySetAdapter(list(Group.objects.values())), "All Groups") self.default_sort = "objid" self.default_columns = [ "objid", "name" ]
def __init__(self, request): con = Connection() db = con['test_datagrids_db'] DataGrid.__init__(self, request, MongoQuerySetAdapter(db.groups.find()), "All Groups") self.default_sort = "objid" self.default_columns = [ "objid", "name" ]
def __init__(self, request): DataGrid.__init__(self, request, Group.objects.all(), "All Groups") self.default_sort = [] self.default_columns = ["objid", "name"]
def __init__(self, request): DataGrid.__init__(self, request, Group.objects.all(), "All Groups") self.default_sort = "objid" self.default_columns = [ "objid", "name" ]