I’m a beginner too, so please keep that in mind while I take a shot at helping.
I had a similar confusion recently — my notes in the sixth reply of this post (or the whole post) might be helpful: Context data and related_name (followers list) - #6 by StephanieAG
I’m not sure if this is “the” answer, but maybe it’s something to do with having the .all Django queryset function added in your template like this:
{% for product in product_list.all %}
...
{% for sale in sales_data.all %}
...
From your post, I’m unsure if you were saying just the sales_data
for loop information isn’t showing on the template or both the product_list
and the sales_data
for loops weren’t coming through. Are they both not working or just the sales_data
one?