On 9/16/05, Matthew Marshall <[EMAIL PROTECTED]> wrote: > > What are you all using to store currency data? > > > > Any tips on how best to write my own meta.DollarField class? > > I went with the first solution that came to mind: > meta.FloatField(decimal_places=2) > [...] > Is there any reason not to do it this way?
That's fine -- that's what we've always done. I'm not sure what the point of a DollarField would be, other than prepopulating decimal_places and max_digits. Would it do anything special, or would it just be a shortcut to meta.FloatField(decimal_places=2, max_digits=10)? (And hard-coding max_digits would be bad, of course...) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org