Float is an inexact numeric type, so this sort of thing gets
problematic.

For a "number of bathrooms" field, why not use a CharField with a
limited set of choices or custom validation?

On Jun 23, 12:19 pm, Peter Schroeder <[email protected]>
wrote:
> Hello,
>
> Has anyone tried to use pluralize template tag with a float value? I
> am thinking of submitting a patch to support this functionality.
>
> For instance, using the value 1.5 returns a singular suffix from
> pluralize. I am implementing a real estate web application where a
> house could have 1.5 bathrooms, for example.
>
> Thanks,
>
> Pete
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to