I have made a discount for a certain product in the discount admin.
     discount percentage: 0.15
     automatic discount activated

On the product template I load satchmo_discounts without errors.
Next to the "normal" price I want to show the discount price so I
added the {{ product|discount_price:"sale" }}  tag to the template.

I keep getting the following error on this tag:

***********************************************
Caught an exception while rendering: 'SafeUnicode' object has no
attribute 'valid_for_product'

Original Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/django/template/debug.py",
line 71, in render_node
    result = node.render(context)
  File "/usr/lib/python2.5/site-packages/django/template/debug.py",
line 87, in render
    output = force_unicode(self.filter_expression.resolve(context))
  File "/usr/lib/python2.5/site-packages/django/template/__init__.py",
line 559, in resolve
    new_obj = func(obj, *arg_vals)
  File "/usr/lib/python2.5/site-packages/satchmo/discount/templatetags/
satchmo_discounts.py", line 77, in discount_saved
    if discount and discount.valid_for_product(product):
AttributeError: 'SafeUnicode' object has no attribute
'valid_for_product'
*************************************************

The {{ product|sale_price }}  tag I can use without problems.
Am I doing something wrong?

Richard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to