Only try to return a shepherd for a document if one has been assigned to the document.

- Legacy-Id: 3123
This commit is contained in:
Henrik Levkowetz 2011-05-12 14:27:48 +00:00
parent 9e24d26529
commit b6840f065c

View file

@ -290,5 +290,5 @@ def get_full_info_for_draft(draft):
workflow=get_workflow_for_draft(draft),
tags=[i.annotation_tag for i in get_annotation_tags_for_draft(draft)],
state=get_state_for_draft(draft),
shepherd=draft.shepherd,
shepherd=draft.shepherd if draft.shepherd_id else None,
)