Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Using old code for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Häusler committed Sep 26, 2014
1 parent c157297 commit 612cc24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ First version which had the following features:
### 0.3
- index support
- user support
- Batch document insert
- Batch document insert

### 0.4
- Index for model fields
- Index queries
22 changes: 11 additions & 11 deletions arangodb/orm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ def all(self):
"""
"""

queryset = CollectionQueryset(manager=self)
queryset.all()
# queryset = CollectionQueryset(manager=self)
# queryset.all()
#
# return queryset

return queryset
docs = self._model_class.collection_instance.documents()
models = []

# docs = self._model_class.collection_instance.documents()
# models = []
#
# for doc in docs:
# model = self._create_model_from_doc(doc=doc)
# models.append(model)
#
# return models
for doc in docs:
model = self._create_model_from_doc(doc=doc)
models.append(model)

return models


def _create_model_from_doc(self, doc):
Expand Down

0 comments on commit 612cc24

Please sign in to comment.