Skip to content

Add ingredients entries to demo data and associated them to bread page#622

Open
Raghaddahi wants to merge 2 commits intowagtail:mainfrom
Raghaddahi:fix/564-missing-ingredients-data
Open

Add ingredients entries to demo data and associated them to bread page#622
Raghaddahi wants to merge 2 commits intowagtail:mainfrom
Raghaddahi:fix/564-missing-ingredients-data

Conversation

@Raghaddahi
Copy link

…, fixes #564

Changes

  • Added 45 new BreadIngredient objects to the fixture
  • Linked the ingredients to 11 existing bread pages
  • Updated bakerydemo/base/fixtures/bakerydemo.json with the new data
  • Fixed incorrect heading hierarchy in bakerydemo/breads/templates/breads/bread_page.html :<h4>Ingredients</h4> changed to <p class="bread-detail__meta-title"> to match Origin and Type labels

Testing

Ran ./manage.py load_initial_data and verified that each bread page displays ingredients correctly. Confirmed no accessibility warnings in the Wagtail CMS checker.

Before fixing the heading

Screenshot From 2026-03-03 21-15-22

After fixing it

Screenshot From 2026-03-03 21-22-40

AI Usage

Used Claude.ai to understand models.py and how to associate ingredients with bread pages.

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.

Missing ingredients data

1 participant