'project_id' : obj.project_id,
'state' : unicode(obj.state).encode("utf-8"),
'state_id' : obj.state_id,
+ 'archived' : obj.archived,
'submitter' : unicode(obj.submitter).encode("utf-8"),
'submitter_id' : obj.submitter_id,
'delegate' : unicode(obj.delegate).encode("utf-8"),
"project_id",
"submitter_id",
"delegate_id",
+ "archived",
"state_id",
"date",
"commit_ref",
"""Return mbox string for the given patch ID."""
try:
patch = Patch.objects.filter(id = patch_id)[0]
- return patch_to_mbox(patch).as_string()
+ return patch_to_mbox(patch).as_string(True)
except:
return ""