Skip to content
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

[#6598] gruenbuch/models: extend oveview page to create index page with migra… #535

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

philli-m
Copy link
Contributor

@philli-m philli-m commented Nov 1, 2022

…tion

I don't know if this is the best way to do this?!

help_text=apps_blocks.HELPTEXT_RICHTEXT_A11Y)
page_intro_de_ls = fields.RichTextField(
blank=True, default="",
verbose_name="Grünbuch Overview page introduction",
verbose_name="Page introduction de ls",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so it matches title form fields and can be used generically

apps/gruenbuch/models.py Outdated Show resolved Hide resolved
@@ -115,6 +116,15 @@ class GruenbuchOverviewPage(MetadataPageMixin, Page):
]


class GruenbuchIndexPage(GruenbuchOverviewPage):
template = 'gruenbuch_overview_page.html'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its the same as parent page, right? So do you need that again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I didn't have it it automatically looked for a template called index_page which didn't exist

@Rineee Rineee self-requested a review November 2, 2022 14:04
Copy link
Contributor

@Rineee Rineee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah cool! Even though this structure is confusing, working all fine!

@Rineee Rineee merged commit d1aa8eb into main Nov 2, 2022
@Rineee Rineee deleted the pm-2022-11-index-page branch November 2, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants