Files
santeh-ray/items/models.py
Azimkin af129309ab
All checks were successful
Build and Push Docker Image / build (push) Successful in 26s
feat: replace color field with colors ManyToManyField in items model
- Updated `Item` model to use a ManyToManyField for colors, replacing the old ForeignKey relationship
- Modified templates to handle multiple color swatches in product details
- Updated admin for managing colors with `filter_horizontal`
- Adjusted views to prefetch related `colors` data for items
- Added migration to apply database changes
2026-05-26 00:20:29 +02:00

4.5 KiB