Switch to side-by-side view
--- a/Allura/allura/model/neighborhood.py +++ b/Allura/allura/model/neighborhood.py @@ -39,6 +39,12 @@ projects = RelationProperty('Project') allow_browse = FieldProperty(bool, if_missing=True) site_specific_html = FieldProperty(str, if_missing='') + + def neighborhood_project(self): + from .project import Project + return Project.query.get( + neighborhood_id=self._id, + shortname='--init--') def parent_security_context(self): return None