Hi Greg,

Strictly speaking None ain't a number (nor a float), so it probably
isn't a bug.
Although it might be convenient at times to automatically convert None
to 0 (as in your case).

A simple workaround I always use is:

{{ best_avg_reliability|default:0|floatformat:1 }}

Greetings,
- Matthias

On Aug 24, 9:33 am, baudmap <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm running the SVN version & getting an "Caught an exception while
> rendering: float() argument must be a string or a number" when
> {{ best_avg_reliability|floatformat:1 }} receives a null value.
>
> Do you think this a bug ?
>
> Thanks,
> greg


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

Reply via email to