Hi ,all I encounter a issue lasting 3 days, any help will be highly appreciate.
view: market_volumn={} for m in marketTypeList: market_volumn[m]=MarketVolumn.objects.filter (marketType=m).order_by('week') print market_volumn in the console ,the print result like this: {<MarketType:1>:[<MarketVolumn: MarketVolumn object>,<MarketVolumn: MarketVolumn object>],<MarketType:2>: [<MarketVolumn: MarketVolumn object>,<MarketVolumn: MarketVolumn object>]} how can I output corresponding in the template? I want result like this: MarketType1 MarketVolumn11,MarketVolumn12,MarketVolumn13 MarketType2 MarketVolumn21,MarketVolumn22,MarketVolumn23 Thank you all --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---