On Saturday 17 September 2005 01:00 am, Eric Walstad wrote: > Hi, > > I didn't find any reference to money or currency data types in the > django source, nor in the list archives. My app needs to store US > Dollars. > > What are you all using to store currency data? > > Any tips on how best to write my own meta.DollarField class? > > Thanks in advance, > > Eric.
I went with the first solution that came to mind: meta.FloatField(decimal_places=2) (Note that you currently have to specify max_digits as well. see http://code.djangoproject.com/ticket/484) Is there any reason not to do it this way? MWM