a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
...
...
776
    @expose()
776
    @expose()
777
    @require_post()
777
    @require_post()
778
    def create(self, icon=None, short=None, full=None):
778
    def create(self, icon=None, short=None, full=None):
779
        require_access(self.neighborhood, 'admin')
779
        require_access(self.neighborhood, 'admin')
780
        app_config_id = ObjectId()
780
        app_config_id = ObjectId()
781
        tool_version = {'neighborhood': '0'}
782
        if short:
781
        if short:
783
            award = M.Award(app_config_id=app_config_id, tool_version=tool_version)
782
            award = M.Award(app_config_id=app_config_id)
784
            award.short = short
783
            award.short = short
785
            award.full = full
784
            award.full = full
786
            award.created_by_neighborhood_id = self.neighborhood._id
785
            award.created_by_neighborhood_id = self.neighborhood._id
787
            if hasattr(icon, 'filename'):
786
            if hasattr(icon, 'filename'):
788
                M.AwardFile.save_image(
787
                M.AwardFile.save_image(
...
...
800
        recipient_q = M.Project.query.find(dict(
799
        recipient_q = M.Project.query.find(dict(
801
            neighborhood_id=self.neighborhood._id, shortname=recipient,
800
            neighborhood_id=self.neighborhood._id, shortname=recipient,
802
            deleted=False)).first()
801
            deleted=False)).first()
803
        if grant_q and recipient_q:
802
        if grant_q and recipient_q:
804
            app_config_id = ObjectId()
803
            app_config_id = ObjectId()
805
            tool_version = {'neighborhood': '0'}
806
            award = M.AwardGrant(app_config_id=app_config_id,
804
            award = M.AwardGrant(app_config_id=app_config_id)
807
                                 tool_version=tool_version)
808
            award.award_id = grant_q._id
805
            award.award_id = grant_q._id
809
            award.granted_to_project_id = recipient_q._id
806
            award.granted_to_project_id = recipient_q._id
810
            award.granted_by_neighborhood_id = self.neighborhood._id
807
            award.granted_by_neighborhood_id = self.neighborhood._id
811
            with h.push_context(recipient_q._id):
808
            with h.push_context(recipient_q._id):
812
                g.post_event('project_updated')
809
                g.post_event('project_updated')