Greg napisaĆ(a): > Jake, > No I didn't. When I tried the 'floatformat:2' I made sure that my > model fields were of type FloatField. When I do use the 'floatformat: > 3' and view the template. I notice that in my error message my for > statement is highlighted: > > TypeError at /rugs/milliken/border/ionica/ > float() argument must be a string or a number > > {% for a in thespinfo %} # This line is highlighted red > 27 <FORM NAME="form1" method="POST" ACTION="/rugs/cart/addtocart/"> > 28 <input name="style_id" type="hidden" value="{{thecinfo.id}}"> > 29 <input name="choice_id" type="hidden" value="{{ a.id }}"> > 30 <tr> > 31 <td>{{ a.size }}</td> > 32 <td>${{ a.price|floatformat:2 }}</td> > 33 <td> > > Also, here is my floatfield in my models.py file. This is the field > that I'm doing the 'floatformat:2' on. > > name = models.FloatField()
Should it really be "name"? You refer to "price" in your template... -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Peters) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---