Skip to content

Commit

Permalink
Merge pull request chb#37 from chintanop/master
Browse files Browse the repository at this point in the history
get_documents_by_rel failing due to query_options
  • Loading branch information
Travers committed Sep 28, 2012
2 parents 21e4f85 + 51e73d5 commit 37af68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indivo/views/documents/document_rels.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_documents_by_rel(request, record, document_id, rel, query_options, pha=N
try:
relationship = DocumentSchema.objects.get(type=DocumentSchema.expand_rel(rel))
docs = Document.objects.filter(record=record,
status=status,
status=query_options['status'],
rels_as_doc_1__document_0__original=document.original_id, # doc is related to passed document
rels_as_doc_1__relationship=relationship) # AND relation type is correct
tdc = len(docs)
Expand Down

0 comments on commit 37af68f

Please sign in to comment.