79127197

Date: 2024-10-25 20:15:42
Score: 2
Natty:
Report link

i find the answer and i want to share with some pepole maybe stuck like me :

from django.db.models import Prefetch
products = products.filter(available=True).prefetch_related(
        Prefetch('colors', queryset=ProductColor.objects.order_by('-quantity'))
    )

fix the problem

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Pourya Mohamadi