Example, no, but you could create a custom field, based on the DecimalField,
which a custom validator that checks for and removes a leading dollar sign.
I think that django snippets has a good chance of having examples of "currency"
fields, and if not, Satchmo has one.  Perhaps they do the dollar sign
removal thing
(though you may have to wander through the l10n stuff to figure out what they're
doing, since not everyone uses dollar sign as their currency symbol),
but even if
not, they are likely to have a custom validator that you can enhance.

On Tue, Jul 20, 2010 at 10:10 AM, reduxdj <patricklemi...@gmail.com> wrote:
> Hi,
>
> Users on my site can't type dollar signs without a form error showing.
> I'd rather allow them
> to type a dollar sign then clean it away after the fact? Can i see an
> example for this procedure please.
>
> Thanks,
> Patrick
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to