79824614

Date: 2025-11-19 15:11:46
Score: 1
Natty:
Report link

Your approach seems a little more complicated than necessary. I would recommend using Django's related objects system: form.instance.item.subItem_set.all in your template should fetch all the subItems related to a specific Item. You could then remove those loops in your view where you fetch the related subItems yourself.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: PT-Hrothgar