Skip to content

Richtext fields#3

Open
nickmoreton wants to merge 8 commits intomainfrom
richtext-fields
Open

Richtext fields#3
nickmoreton wants to merge 8 commits intomainfrom
richtext-fields

Conversation

@nickmoreton
Copy link
Copy Markdown
Contributor

@nickmoreton nickmoreton commented Oct 27, 2024

Don't merge

This pull request includes several changes to the blog and wp_connector modules, focusing on adding new models, updating migrations, and refining the exporter functionalities. The most important changes involve the creation of new models for blog categories, updates to the wp_connector exporter, and migration adjustments.

This pull request includes significant changes to the migration files, model definitions, and some functionality improvements in the wp_connector module. The most important changes include the creation of new models for blog categories, updates to the wp_connector models and migrations, and the introduction of a new utility class for converting HTML to StreamField JSON.

Blog Module Enhancements:

  • Created BlogCategory model with name and slug fields. (blog/migrations/0007_blogcategory.py)
  • Created BlogPageCategory model to associate blog pages with categories. (blog/migrations/0008_blogpagecategory.py)

Home Module Adjustments:

  • Corrected typo in StreamField block name from "paragraph" to "paragrpah". (home/migrations/0005_alter_standardpage_body.py)
  • Updated StreamField block lookup to remove unnecessary mappings. (home/migrations/0006_alter_standardpage_body.py)

wp_connector Module Enhancements:

  • Added wagtail_page_id field to various models in wp_connector initial migration. (wp_connector/migrations/0001_initial.py) [1] [2]
  • Removed redundant migration files and consolidated changes. (wp_connector/migrations/0002_alter_wpauthor_name.py, wp_connector/migrations/0003_wpauthor_wagtail_page_id_wpcategory_wagtail_page_id_and_more.py) [1] [2]
  • Introduced HTML_to_Streamfield utility class for converting HTML content to StreamField JSON format. (wp_connector/exporter.py)

Codebase Improvements:

  • Added message_param to enhance log messages in update_wagtail_page function. (wp_connector/admin.py)
  • Imported StreamBlock in home/models.py to avoid import errors. (home/models.py)

@nickmoreton nickmoreton force-pushed the richtext-fields branch 4 times, most recently from 3e97384 to 9861cca Compare November 2, 2024 14:42
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.

1 participant