-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update homepage to not used wagtail pages #4127
Conversation
|
||
|
||
class ApplyHomePage(Page): | ||
# Only allow creating HomePages at the root level | ||
parent_page_types = ["wagtailcore.Page"] | ||
subpage_types = ["funds.FundType", "funds.LabType", "funds.RequestForPartners"] | ||
|
||
strapline = models.CharField(blank=True, max_length=255) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this line makes the code in copy_homepage_title_and_strapline
not run since the model no longer have a strapline.
Would be really good to get this working making the deployment of this release seamless.
Maybe we can remove the strapline field in a separate release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, hasattr
will always be false. I think we can remove it later after couple of releases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the code so that it keeps the strapline on the ApplyHome model.
ed90f14
to
b3fd203
Compare
b3fd203
to
4685820
Compare
Use standard django views to show hompeage instead of piggy backing on the wagtail. This allows to remove the "Pages" menu from the wagtail admin and have the homepage settings be at a single "System Settings" - update the hompeage to use Settings > System Settings - add data migration to move the properties from ApplyHompeage model to SystemSettings - hide "Pages" menu from wagtail - Refractor the homepage template Fixes: #4116
Use standard django views to show hompeage instead of piggy backing on
the wagtail. This allows to remove the "Pages" menu from the wagtail
admin and have the homepage settings be at a single "System Settings"
SystemSettings
Fixes: #4116