is the subcategory the same for all the top level categories?

if so, i think you should be able to query  your category queryset,
like this?

finalset =
Category.objects.filter(....).filter(subcategory__field=....)

Unless I'm not understanding.



On Oct 13, 10:52 am, Austin Govella <austin.gove...@gmail.com> wrote:
> I have a category page that lists all of its subcategories on it.
>
> For each subcategory, I would like to query for one product in that
> subcategory.
>
> In PHP, I think I did this in the page, outputting HTML as I went. But
> I can't figure out how to do this in Django. My programming brain is
> just rusty, so I probably just need a pointer to how I overwriting the
> variables when I iterate through the queryset.
>
> Many thanks,
> --
> Austin

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to