@property<EOL><INDENT>def _discussion_parent_id(self):<DEDENT>
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>return self.course_id<EOL><DEDENT>elif hasattr(self, '<STR_LIT>'):<EOL><INDENT>return self.group_id<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Return the id of the course or group that spawned the discussion topic.

:rtype: int