From 719cd1f4a0be3cb390fbfbf5cfe843da93324b3f Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 17 Jan 2018 14:15:41 +0000 Subject: [PATCH] Update ability to select different page types as related obejcts --- opentech/public/projects/models.py | 2 +- opentech/public/utils/models.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/opentech/public/projects/models.py b/opentech/public/projects/models.py index 549db1967..7477f9449 100644 --- a/opentech/public/projects/models.py +++ b/opentech/public/projects/models.py @@ -115,7 +115,7 @@ class ProjectPage(FundingMixin, BasePage): FieldPanel('status'), StreamFieldPanel('body'), InlinePanel('contact_details', label="Contact Details"), - InlinePanel('related_pages', label="Related pages"), + InlinePanel('related_pages', label="Related Projects"), InlinePanel('funding', label="Funding"), ] diff --git a/opentech/public/utils/models.py b/opentech/public/utils/models.py index d24701745..06ec311c7 100644 --- a/opentech/public/utils/models.py +++ b/opentech/public/utils/models.py @@ -277,8 +277,7 @@ class BaseFunding(Orderable): FieldPanel('value'), FieldPanel('duration'), ]), - # This is stubbed as we need to be able to select from multiple - PageChooserPanel('source'), + PageChooserPanel('source', ['public_funds.FundPage', 'public_funds.LabPage']), ] class Meta(Orderable.Meta): -- GitLab