[Fixed]-Badly Formed hexadecimal uuid string error in Django fixture

1👍

When filtering the Product model by category, you should use the category instance, not the category name.

products_by_category = Product.objects.filter(category=current_category)

Note you don’t need to call all() before filter().

Leave a comment