Skip to content

Conversation

@pratyushjha06
Copy link

Fixes #564

Summary

This PR adds missing ingredients data to bread pages in the bakerydemo fixture.

Changes Made

  • Added 80+ BreadIngredient entries to bakerydemo.json fixture
  • Assigned 6-12 realistic ingredients to each BreadPage based on bread type
  • Created seed_ingredients.py management command for reproducible ingredient assignment
  • Validated fixture with jsonlint.com to ensure proper JSON formatting

Testing

  • ✅ Tested locally on Windows with Django 5.x
  • ✅ Verified all bread detail pages now display ingredient lists
  • ✅ Confirmed ingredients appear correctly in Django admin
  • ✅ Fixture loads without errors using python manage.py loaddata bakerydemo.json

Notes

  • Minor encoding workarounds applied for Windows compatibility
  • All bread pages now show non-empty ingredient lists by default
  • Ready for review and testing on Linux/macOS environments

Screenshots

FireShot Capture 005 - Breads - The Wagtail Bakery -  127 0 0 1 FireShot Capture 004 - Bolani - The Wagtail Bakery -  127 0 0 1

@pratyushjha06 pratyushjha06 closed this by deleting the head repository Dec 29, 2025
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