Victory! Glad you got it going. It'll be much easier next time. --Stuart On Feb 9, 2011 12:12 AM, "Tres Finocchiaro" <[email protected]> wrote: > Working, thank you! > > templatetags/order_extras.py: > >> *from django import template >> from django.template.defaultfilters import stringfilter >> register = template.Library() >> @register.filter(name='total_qty') >> def total_qty(order): >> qty = 0 >> for item in order.orderitem_set.all(): >> qty += item.quantity >> return qty* > > > templates/shop/my_template.html: > >> *{% load order_extras %} >> <html> >> {% for order in orders %} >> Total Quantity: {{ order|total_qty }} >> {% endfor %} >> </html>* > > > Reloading the web server was the trick. Thanks again so much. > > -Tres > On Wed, Feb 9, 2011 at 12:56 AM, Stuart Laughlin <[email protected] >wrote: > >> In my experience no, but all it takes is one exception to the norm to cause >> an unpleasant surprise! >> On Feb 8, 2011 11:51 PM, "Tres Finocchiaro" <[email protected]> >> wrote: >> > Stuart, >> > >> > I'm willing to try. I get weary when i see stuff like "*restart store*". >> > In your experience, does that zero out any built-in daily figures? >> > >> > -Tres >> > >> > >> > -- >> > - [email protected] >> > >> > -- >> > You received this message because you are subscribed to the Google Groups >> "Satchmo users" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> [email protected]. >> > For more options, visit this group at >> http://groups.google.com/group/satchmo-users?hl=en. >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Satchmo users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/satchmo-users?hl=en. >> > > > > -- > - [email protected] > > -- > You received this message because you are subscribed to the Google Groups "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to [email protected]. > For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en. >
-- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
